This commit is contained in:
Michael RICOIS 2018-02-09 10:10:22 +01:00
parent 0d6e609448
commit f53dee8581

View File

@ -5,10 +5,10 @@ class AuthController extends AuthControllerCore
{
// We can't run parent::preProcess() here since it would run the authentication process
if(!isset($this->php_self)) {
if (!isset($this->php_self)) {
$this->php_self = strtolower(basename($_SERVER['PHP_SELF']));
}
if($this->php_self == '404.php') {
if ($this->php_self == '404.php') {
$page_name = 'page-404';
} else {
if(preg_match('#^'.__PS_BASE_URI__.'modules/([a-zA-Z0-9_-]+?)/([^?]*)(\?(.*))?$#', strtolower($_SERVER['REQUEST_URI']), $m)) {