Skip to content

Commit 6ef3b05

Browse files
authored
Merge pull request #1516 from adrum/patch-1
Update CraftValetDriver for compatbility with craftcms/security-patches
2 parents 66b7d43 + ba2d572 commit 6ef3b05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/Valet/Drivers/Specific/CraftValetDriver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ public function frontControllerPath(string $sitePath, string $siteName, string $
193193
$_SERVER['PHP_SELF'] = $scriptName;
194194
$_SERVER['DOCUMENT_ROOT'] = $sitePath.'/'.$frontControllerDirectory;
195195

196+
if (isset($_SERVER['argv'])) {
197+
unset($_SERVER['argv']);
198+
}
199+
196200
return $indexPath;
197201
}
198202
}

0 commit comments

Comments
 (0)