@ -34,18 +34,21 @@ class Filesystem
public function getPagePathByUri(string $uri): ?string
{
$uri = urldecode(
$uri
);
$path = sprintf(
'%s/pages/%s.txt',
$this->_path,
str_replace(
':',
'/',
trim(
mb_strtolower(
urldecode(
)
),
':'
if (!in_array($path, $this->_list) || !is_file($path) || !is_readable($path))