mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Merge pull request #1516 from adrum/patch-1
Update CraftValetDriver for compatbility with craftcms/security-patches
This commit is contained in:
@@ -193,6 +193,10 @@ public function frontControllerPath(string $sitePath, string $siteName, string $
|
||||
$_SERVER['PHP_SELF'] = $scriptName;
|
||||
$_SERVER['DOCUMENT_ROOT'] = $sitePath.'/'.$frontControllerDirectory;
|
||||
|
||||
if (isset($_SERVER['argv'])) {
|
||||
unset($_SERVER['argv']);
|
||||
}
|
||||
|
||||
return $indexPath;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user