From 536bd1660aab28aa9b670bd60dbdd2743c545ca4 Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Wed, 11 Oct 2017 13:11:05 +0300 Subject: [PATCH] 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 --- web-lib-funcs.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 045333b7d..c757386be 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -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'});