mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-14 04:16:54 +01:00
strictly typecast port to int
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user