History log of /plugin/filelist/_test/ (Results 1 – 5 of 5)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
0aa34e2330-Jun-2026 Andreas Gohr <gohr@cosmocode.de>

Resolve configured paths to absolute to fix wiki dir protection (#50)

Relative roots (e.g. "firmware") never matched the absolute DOKU_INC, so
isWikiControlled() was silently bypassed and files insi

Resolve configured paths to absolute to fix wiki dir protection (#50)

Relative roots (e.g. "firmware") never matched the absolute DOKU_INC, so
isWikiControlled() was silently bypassed and files inside the DokuWiki
directory could be served, circumventing ACLs. Relative paths also resolved
against the current working directory, which differs between doku.php (wiki
root) and file.php (plugin dir) - hence listing worked while downloads failed
with "Path not readable".

Paths are now resolved to absolute (relative ones against DOKU_INC) before any
filesystem access and before the wiki/data dir comparison, making behaviour
cwd-independent and the guard effective. Also fixes the always-relative
savedir default and the doubled-slash (%2F%2F) in generated file URLs.

show more ...

d6a45e5c13-Mar-2024 Andreas Gohr <andi@splitbrain.org>

ignore typical temporary files when listing directories

Operating systems love to cluter the file system with all kinds of
cruft. This adds a gitignore like config to skip those files when
listing f

ignore typical temporary files when listing directories

Operating systems love to cluter the file system with all kinds of
cruft. This adds a gitignore like config to skip those files when
listing files.

show more ...

1eeb87d727-Feb-2024 Andreas Gohr <andi@splitbrain.org>

adjust tests

This could really use some more tests but this has to suffice for now.

1c9be82526-Feb-2024 Andreas Gohr <andi@splitbrain.org>

initial automatic cleanup

d8da667608-May-2016 LarsDW223 <lars_paulsen@web.de>

Added test code (incomplete) and travis-ci config file.