We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e9f57f commit 09bcbb1Copy full SHA for 09bcbb1
src/DocumentRoot.php
@@ -114,7 +114,12 @@ public function setFallback(RequestHandler $requestHandler): void
114
*/
115
public function handleRequest(Request $request): Response
116
{
117
- $path = removeDotPathSegments($request->getUri()->getPath());
+ $path = $request->getUri()->getPath();
118
+ if (stripos($path, "%2f") !== false || strpos($path, "%00") !== false) {
119
+ return $this->respondFromFileInfo(Internal\FileInformation::fromNonExistentFile($path), $request);
120
+ }
121
+
122
+ $path = removeDotPathSegments(\urldecode($path));
123
124
return ($fileInfo = $this->fetchCachedStat($path, $request))
125
? $this->respondFromFileInfo($fileInfo, $request)
0 commit comments