mirror of
https://github.com/tursom/typecho-plugin-Access.git
synced 2024-12-28 05:40:40 +08:00
修复无痕访问时主页报错
Deprecated: parse_url(): Passing null to parameter Anankke#1 ($url) of type string is deprecated in /usr/plugins/Access/Access_Core.php on line 402
This commit is contained in:
parent
61963e9c4a
commit
fea66abf87
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user