* Fix bug #34893, Modify back button link.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user