mirror of
https://github.com/webmin/webmin.git
synced 2026-06-20 11:20:30 +01:00
Handle case where some paths are listed twice https://github.com/Real-Gecko/Filemin/issues/144
This commit is contained in:
@@ -67,6 +67,7 @@ sub get_paths {
|
||||
@allowed_paths = map { $_ eq '$HOME' ? @remote_user_info[7] : $_ }
|
||||
@allowed_paths;
|
||||
@allowed_paths = map { s/\$USER/$remote_user/g; $_ } @allowed_paths;
|
||||
@allowed_paths = &unique(@allowed_paths);
|
||||
if (scalar(@allowed_paths) == 1) {
|
||||
$base = $allowed_paths[0];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user