From fcbbc6c472f59eaaa55331863d37535f06736681 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 22 Nov 2023 16:33:44 +0100 Subject: [DocumentServer] urldecode request path --- src/Server/RequestHandlers/DocumentServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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'; } -- cgit v1.2.3