Integrate Dokuwiki ACL for file endpoint
This commit is contained in:
5
Path.php
5
Path.php
@@ -49,11 +49,6 @@ class Path
|
||||
$alias = static::cleanPath($line);
|
||||
$paths[$lastRoot]['alias'] = $alias;
|
||||
$paths[$alias] = &$paths[$lastRoot]; // alias references the original
|
||||
} elseif (str_starts_with($line, 'W>')) {
|
||||
// this is a web path for the last read root
|
||||
$line = trim(substr($line, 2));
|
||||
if (!isset($paths[$lastRoot])) continue; // no last path, no web path
|
||||
$paths[$lastRoot]['web'] = $line;
|
||||
} else {
|
||||
// this is a new path
|
||||
$line = static::cleanPath($line);
|
||||
|
||||
Reference in New Issue
Block a user