mirror of
https://github.com/getgrav/grav.git
synced 2026-02-08 23:57:39 +01:00
Ensure consistency in port handling, always set as string and not as integer
This commit is contained in:
@@ -86,7 +86,7 @@ class Uri
|
||||
*/
|
||||
private function buildPort()
|
||||
{
|
||||
$port = isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : 80;
|
||||
$port = isset($_SERVER['SERVER_PORT']) ? (string)$_SERVER['SERVER_PORT'] : '80';
|
||||
return $port;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user