strictly typecast port to int

This commit is contained in:
Daniel Ruf
2017-08-28 12:27:17 +02:00
committed by GitHub
parent 7234794349
commit 69a981bae5

View File

@@ -292,7 +292,7 @@ class Checks
{
return
(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
|| $_SERVER['SERVER_PORT'] === 443;
|| (int)$_SERVER['SERVER_PORT'] === 443;
}
/**
@@ -315,4 +315,4 @@ class Checks
{
return strpos(Request::getRequestHeaders('Accept'), 'application/json') === 0;
}
}
}