mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 16:10:08 +01:00
Shortened isset()
This commit is contained in:
committed by
Adam Wathan
parent
745005dcae
commit
a0dbae74bf
@@ -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'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user