mirror of
https://github.com/webmin/webmin.git
synced 2026-08-12 10:30:44 +01:00
Check for trigger URL to simply redirect to root
This is required for Authentic Theme 19.00+ https://github.com/qooob/authentic-theme/issues/844 https://github.com/qooob/authentic-theme/issues/848
This commit is contained in:
@@ -4686,6 +4686,11 @@ if ($module_name && !$main::no_acl_check &&
|
||||
}
|
||||
$main::no_acl_check++;
|
||||
}
|
||||
|
||||
# Check for trigger URL to simply redirect to root: required for Authentic Theme 19.00+
|
||||
if ($ENV{'REQUEST_URI'} =~ /xnavigation=1/) {
|
||||
redirect($gconfig{'webprefix'} || "/");
|
||||
}
|
||||
|
||||
# Check the Referer: header for nasty redirects
|
||||
my @referers = split(/\s+/, $gconfig{'referers'});
|
||||
|
||||
Reference in New Issue
Block a user