History log of /dokuwiki/inc/Remote/Response/Media.php (Results 1 – 7 of 7)
Revision Date Author Comments
# 7e687fd8 29-May-2026 Andreas Gohr <andi@splitbrain.org>

fix(auth): scope media ACL checks to the namespace

Media files have no per-file ACLs; permissions must be evaluated against
the namespace they live in. Several call sites passed the raw media ID
to

fix(auth): scope media ACL checks to the namespace

Media files have no per-file ACLs; permissions must be evaluated against
the namespace they live in. Several call sites passed the raw media ID
to auth_quickaclcheck(), so a page-intended exact-ID rule (e.g. on
wiki:secret.png) could silently apply to a media file sharing that ID.

Introduce mediaAclPath() that builds the correct namespace wildcard
path (handling root-namespace media) and route all media-related ACL
checks through it. Also normalize the lone `:X` sentinel variant in
fetch.functions.php to the standard `:*` form.

fixes: #4647

show more ...


# 093fe67e 07-Mar-2026 Andreas Gohr <andi@splitbrain.org>

updated rector and applied it


# d48c2b25 07-Jan-2024 Andreas Gohr <andi@splitbrain.org>

API: code style fixes


# d1f06eb4 06-Jan-2024 Andreas Gohr <andi@splitbrain.org>

API: ApiCore tests fixed and extended


# 8268b284 06-Jan-2024 Andreas Gohr <andi@splitbrain.org>

API: make responses sortable

All responses now need to implement __toString() so they can be easily
sorted or printed.


# 58ae4747 05-Jan-2024 Andreas Gohr <andi@splitbrain.org>

API: initialize responses explicitly

Instead of passing unknown arrays, explicit parameters are passed.
Revision handling should now work correctly since we can pass revision=0
but a mtime.


# 6cce3332 05-Jan-2024 Andreas Gohr <andi@splitbrain.org>

Reworked API definition

This cleans up the API:

* no more compatibility with obsolete wiki API
* no more difference between wiki.* and dokuwiki.* calls -> core.*
* use of optional parameters avoids

Reworked API definition

This cleans up the API:

* no more compatibility with obsolete wiki API
* no more difference between wiki.* and dokuwiki.* calls -> core.*
* use of optional parameters avoids double definitions
* use Response objects for complex results
* always use named primitives as input
* major cleanup of docblock descriptions

show more ...