fix: ?login can return loginpage
parent
29840c8b26
commit
4073323d7c
|
@ -190,7 +190,8 @@ function main($path)
|
|||
} else {
|
||||
$adminloginpage = getConfig('adminloginpage');
|
||||
}
|
||||
if (isset($_GET['login'])&&$_GET['login']==$adminloginpage) {
|
||||
if (isset($_GET['login'])) {
|
||||
if ($_GET['login']===$adminloginpage) {
|
||||
/*if (isset($_GET['preview'])) {
|
||||
$url = $_SERVER['PHP_SELF'] . '?preview';
|
||||
} else {
|
||||
|
@ -207,6 +208,7 @@ function main($path)
|
|||
} else return adminform($compareresult);
|
||||
} else return adminform();
|
||||
}
|
||||
}
|
||||
if ( isset($_COOKIE['admin'])&&compareadminmd5('admin', getConfig('admin'), $_COOKIE['admin']) ) {
|
||||
$_SERVER['admin']=1;
|
||||
$_SERVER['needUpdate'] = needUpdate();
|
||||
|
|
Loading…
Reference in New Issue