Browse Source

add path exist validation

main
ghost 8 months ago
parent
commit
dff5ed97a1
  1. 5
      src/Dokuwiki/Filesystem.php

5
src/Dokuwiki/Filesystem.php

@ -58,6 +58,11 @@ class Filesystem @@ -58,6 +58,11 @@ class Filesystem
public function getPageUriByPath(string $path): ?string
{
if (!in_array($path, $this->_list) || !is_file($path) || !is_readable($path))
{
return null;
}
$path = str_replace(
sprintf(
'%s/pages/',

Loading…
Cancel
Save