From caa73378e1ec7038c2e693d75afbcbc5e2684908 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 8 Apr 2020 17:49:16 +0800 Subject: [PATCH] fix: folderpass=adminpass --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index f9c8e7c..9fcec47 100644 --- a/common.php +++ b/common.php @@ -190,7 +190,7 @@ function main($path) } } if (getConfig('admin')!='') - if ( (isset($_COOKIE['admin'])&&$_COOKIE['admin']==md5(getConfig('admin'))) || (isset($_POST['password1'])&&$_POST['password1']==getConfig('admin')) ) { + if ( isset($_COOKIE['admin'])&&$_COOKIE['admin']==md5(getConfig('admin')) ) { $_SERVER['admin']=1; $_SERVER['needUpdate'] = needUpdate(); } else {