Merge pull request #1 from BapiGso/BapiGso-patch-1

修复无痕访问时主页报错
This commit is contained in:
BapiGso 2022-04-02 21:29:49 +08:00 committed by GitHub
commit 365a60b30a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,7 +345,7 @@ class Access_Core
$entrypoint = Typecho_Cookie::get('__typecho_access_entrypoint');
}
if (parse_url($entrypoint, PHP_URL_HOST) == parse_url(Helper::options()->siteUrl, PHP_URL_HOST)) {
$entrypoint = null;
$entrypoint = '';
}
if ($entrypoint != null) {
Typecho_Cookie::set('__typecho_access_entrypoint', $entrypoint);