Update common.php

This commit is contained in:
qkqpttgf 2020-04-02 18:23:58 +08:00 committed by GitHub
parent 00023986b3
commit f1a6d2821e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -483,8 +483,8 @@ function equal_replace($str, $add = false)
function is_guestup_path($path)
{
$a1 = path_format(path_format(urldecode($_SERVER['list_path'].path_format($path))).'/')
$a2 = path_format(path_format(getConfig('guestup_path')).'/')
$a1 = path_format(path_format(urldecode($_SERVER['list_path'].path_format($path))).'/');
$a2 = path_format(path_format(getConfig('guestup_path')).'/');
if (getConfig('guestup_path')!=''&&strtolower($a1)==strtolower($a2)) return 1;
return 0;
}