Browse Source

add path exist validation

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

5
src/Dokuwiki/Filesystem.php

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

Loading…
Cancel
Save