diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-11-22 16:33:44 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-11-22 16:33:44 +0100 |
commit | fcbbc6c472f59eaaa55331863d37535f06736681 (patch) | |
tree | cb6f89f019e95df46a5a0e5798b05f74fbaf9df4 /src/Server/RequestHandlers/DocumentServer.php | |
parent | 6df3d321d9b67c4541f50158b087d37c4b22e886 (diff) |
[DocumentServer] urldecode request path
Diffstat (limited to 'src/Server/RequestHandlers/DocumentServer.php')
-rw-r--r-- | src/Server/RequestHandlers/DocumentServer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Server/RequestHandlers/DocumentServer.php b/src/Server/RequestHandlers/DocumentServer.php index 9689d5b..37a3bd6 100644 --- a/src/Server/RequestHandlers/DocumentServer.php +++ b/src/Server/RequestHandlers/DocumentServer.php @@ -19,7 +19,7 @@ class DocumentServer implements RequestHandlerInterface public function __invoke(Response $response, Request $request): Response { - $documentPath = $this->documentRoot . $request->getPath(); + $documentPath = $this->documentRoot . urldecode($request->getPath()); if (! is_file($documentPath)) { $documentPath = $this->documentRoot . $request->getPath() . '/index.gmi'; } |