From bb600b8dd67a118f15255d24e6e89bd94a9bca8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E7=9B=9BDiscuz!?= Date: Mon, 17 Jul 2017 21:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=80=A7=E5=8A=A0=E5=BC=BA?= =?UTF-8?q?=20=E6=8F=90=E9=AB=98=20config/security/authkey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/install/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/install/index.php b/upload/install/index.php index 38a8dbf..2379438 100644 --- a/upload/install/index.php +++ b/upload/install/index.php @@ -343,7 +343,7 @@ if($method == 'show_license') { $uid = DZUCFULL ? 1 : $adminuser['uid']; - $authkey = substr(md5($_SERVER['SERVER_ADDR'].$_SERVER['HTTP_USER_AGENT'].$dbhost.$dbuser.$dbpw.$dbname.$username.$password.$pconnect.substr($timestamp, 0, 6)), 8, 6).random(10); + $authkey = md5($_SERVER['SERVER_ADDR'].$_SERVER['HTTP_USER_AGENT'].$dbhost.$dbuser.$dbpw.$dbname.$username.$password.$pconnect.substr($timestamp, 0, 8)).random(18); $_config['db'][1]['dbhost'] = $dbhost; $_config['db'][1]['dbname'] = $dbname; $_config['db'][1]['dbpw'] = $dbpw;