Accounted for stupid behaviour.
This commit is contained in:
parent
c750591782
commit
6e650923d8
1 changed files with 2 additions and 0 deletions
|
@ -212,6 +212,8 @@ function msz_server_timing(\Index\Performance\Timings $timings): string {
|
|||
|
||||
function msz_cookie_domain(bool $compatible = true): string {
|
||||
$url = parse_url($_SERVER['HTTP_HOST'], PHP_URL_HOST);
|
||||
if(empty($url))
|
||||
$url = $_SERVER['HTTP_HOST'];
|
||||
|
||||
if(!filter_var($url, FILTER_VALIDATE_IP) && $compatible)
|
||||
$url = '.' . $url;
|
||||
|
|
Loading…
Add table
Reference in a new issue