1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

Merge pull request #1516 from adrum/patch-1

Update CraftValetDriver for compatbility with craftcms/security-patches
This commit is contained in:
Matt Stauffer
2025-05-06 18:21:27 -04:00
committed by GitHub

View File

@@ -193,6 +193,10 @@ public function frontControllerPath(string $sitePath, string $siteName, string $
$_SERVER['PHP_SELF'] = $scriptName; $_SERVER['PHP_SELF'] = $scriptName;
$_SERVER['DOCUMENT_ROOT'] = $sitePath.'/'.$frontControllerDirectory; $_SERVER['DOCUMENT_ROOT'] = $sitePath.'/'.$frontControllerDirectory;
if (isset($_SERVER['argv'])) {
unset($_SERVER['argv']);
}
return $indexPath; return $indexPath;
} }
} }