From 5af27aa338fd66f506487978b41c4ea2cc3cd720 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 27 Apr 2023 13:25:35 +0800 Subject: [PATCH] * Fix bug #34893, Modify back button link. --- lib/base/front/front.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base/front/front.class.php b/lib/base/front/front.class.php index e00226eae8..0c00d47a97 100644 --- a/lib/base/front/front.class.php +++ b/lib/base/front/front.class.php @@ -526,8 +526,8 @@ class baseHTML /* If the link of the referer is not the link of the current page or the link of the index, the cookie and gobackLink will be updated. */ if(preg_match("/(?:m=|\/)([a-zA-Z0-9]+)(?:(&f=)|(-?))([a-zA-Z0-9]+)?(?:&|-|\.)?/", strtolower($refererLink), $matches)) { - if(!isset($matches[2])) $matches[2] = $config->default->method; - if(!in_array($matches[1], array($config->default->module, 'search')) or !in_array($matches[2], array($config->default->method, 'buildquery'))) + if(!isset($matches[4])) $matches[4] = $config->default->method; + if(!in_array($matches[1], array($config->default->module, 'search')) or !in_array($matches[4], array($config->default->method, 'buildquery'))) { if($matches[1] != 'index' and ($matches[1] != $currentModule or $matches[4] != $currentMethod)) {