summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-11-22 16:33:44 +0100
committerDaniel Weipert <code@drogueronin.de>2023-11-22 16:33:44 +0100
commitfcbbc6c472f59eaaa55331863d37535f06736681 (patch)
treecb6f89f019e95df46a5a0e5798b05f74fbaf9df4 /src
parent6df3d321d9b67c4541f50158b087d37c4b22e886 (diff)
[DocumentServer] urldecode request path
Diffstat (limited to 'src')
-rw-r--r--src/Server/RequestHandlers/DocumentServer.php2
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';
}