From 85e83f7f49b7c2ff6621a326bfa90ac2752a2c1f Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 31 Jan 2024 17:34:33 +0200 Subject: [PATCH] update getPagePath filter --- src/Dokuwiki/Filesystem.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 + ) + ), + ':' + ) ) );