diff options
Diffstat (limited to 'src/Server/RequestHandlers')
-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'; } |