diff --git a/src/Dokuwiki/Filesystem.php b/src/Dokuwiki/Filesystem.php index ddf30fc..5d6fa92 100644 --- a/src/Dokuwiki/Filesystem.php +++ b/src/Dokuwiki/Filesystem.php @@ -34,17 +34,20 @@ class Filesystem public function getPagePathByUri(string $uri): ?string { - $uri = urldecode( - $uri - ); - $path = sprintf( '%s/pages/%s.txt', $this->_path, str_replace( ':', '/', - $uri + trim( + mb_strtolower( + urldecode( + $uri + ) + ), + ':' + ) ) );