diff --git a/includes/core/urls.inc.php b/includes/core/urls.inc.php index 1ec0548..a87d7b3 100644 --- a/includes/core/urls.inc.php +++ b/includes/core/urls.inc.php @@ -28,7 +28,7 @@ final class URLMapper public function fromPathInfo( ) { - $path = rtrim( preg_replace( '/\/\/+/g', '/', $_SERVER[ 'PATH_INFO' ] ?? '') , '/' ); + $path = rtrim( preg_replace( '/\/\/+/', '/', $_SERVER[ 'PATH_INFO' ] ?? '') , '/' ); if ( !$path ) { $path = '/' . $this->package->config( $this->configBase . '/default' , 'home' ); }