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:
Ilia Rostovtsev
2017-10-11 13:11:05 +03:00
committed by GitHub
parent 4843d76d62
commit 536bd1660a

View File

@@ -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'});