1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Shortened isset()

This commit is contained in:
Vic D'Elfant
2017-06-09 14:27:55 +02:00
committed by Adam Wathan
parent 745005dcae
commit a0dbae74bf

View File

@@ -54,7 +54,7 @@ public function isStaticFile($sitePath, $siteName, $uri)
public function frontControllerPath($sitePath, $siteName, $uri)
{
// Shortcut for getting the "local" hostname as the HTTP_HOST
if (isset($_SERVER['HTTP_X_ORIGINAL_HOST']) && isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
if (isset($_SERVER['HTTP_X_ORIGINAL_HOST'], $_SERVER['HTTP_X_FORWARDED_HOST'])) {
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
}