Skip to content

Commit 320c0aa

Browse files
authored
Support of error pages behind a load balancer that serves HTTPS
Use strict comparison
1 parent 53452fb commit 320c0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pub/errors/processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function getHostUrl()
265265
$host = 'localhost';
266266
}
267267

268-
$isSecure = (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] != 'off')
268+
$isSecure = (!empty($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] !== 'off')
269269
|| isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https');
270270
$url = ($isSecure ? 'https://' : 'http://') . $host;
271271

0 commit comments

Comments
 (0)