删除多出的一对括号?

This commit is contained in:
test_discuz 2017-07-28 23:56:32 +08:00
parent 160651319b
commit 319eb51ff8
1 changed files with 1 additions and 1 deletions

View File

@ -2026,7 +2026,7 @@ function check_diy_perm($topic = array(), $flag = '') {
function strhash($string, $operation = 'DECODE', $key = '') {
$key = md5($key != '' ? $key : getglobal('authkey'));
if($operation == 'DECODE') {
$hashcode = gzuncompress(base64_decode(($string)));
$hashcode = gzuncompress(base64_decode($string));
$string = substr($hashcode, 0, -16);
$hash = substr($hashcode, -16);
unset($hashcode);