mirror of
https://github.com/webmin/webmin.git
synced 2026-05-05 06:40:28 +01:00
Timezone links can sometimes start with ../
This commit is contained in:
@@ -36,6 +36,7 @@ sub get_current_timezone
|
||||
local $lnk = readlink(&translate_filename($currentzone_link));
|
||||
if ($lnk) {
|
||||
# Easy - it a link
|
||||
$lnk =~ s/^\.\.//;
|
||||
$lnk =~ s/$timezones_dir\///;
|
||||
return $lnk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user