* Fix bug #34893, Modify back button link.

This commit is contained in:
caoyanyi
2023-04-27 13:25:35 +08:00
parent 2697978732
commit 5af27aa338
+2 -2
View File
@@ -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))
{