mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Fix to resolve links before testing allowed path
This commit is contained in:
@ -9,7 +9,7 @@ use Cwd 'abs_path';
|
||||
|
||||
get_paths();
|
||||
|
||||
my $file = &simplify_path($cwd.'/'.$in{'file'});
|
||||
my $file = &resolve_links(&simplify_path($cwd.'/'.$in{'file'}));
|
||||
my $error = 1;
|
||||
for $allowed_path (@allowed_paths) {
|
||||
if (&is_under_directory($allowed_path, $file)) {
|
||||
|
Reference in New Issue
Block a user