| #
17acbd0f
|
| 06-Jun-2026 |
Andreas Gohr <andi@splitbrain.org> |
Cast the ACL permission to an integer when saving the rule table
The bulk update path pulled the permission map straight from input and wrote each value verbatim into a tab-separated ACL line, while
Cast the ACL permission to an integer when saving the rule table
The bulk update path pulled the permission map straight from input and wrote each value verbatim into a tab-separated ACL line, while the single-rule path already read it through an integer filter. A non-integer value could carry a newline or tab and inject extra rules into the file. Cast to int so the value can only ever be a single permission number.
This was not exploitable: the rule table is reachable only through the ACL admin plugin, which is superuser-only and CSRF-protected, and a superuser can already edit the ACL file directly. The cast is hardening for consistency with the single-rule path.
show more ...
|
| #
093fe67e
|
| 07-Mar-2026 |
Andreas Gohr <andi@splitbrain.org> |
updated rector and applied it
|
| #
e44b94a4
|
| 08-Sep-2024 |
Andreas Gohr <andi@splitbrain.org> |
Revert "use a dispatcher to access static image files"
This reverts commit 944e9ba7254387adb60f253b0d8796f2276096b1.
It was accidentally pused to master before review. A PR with a revert for the re
Revert "use a dispatcher to access static image files"
This reverts commit 944e9ba7254387adb60f253b0d8796f2276096b1.
It was accidentally pused to master before review. A PR with a revert for the revert will be pushed shortly.
show more ...
|
| #
944e9ba7
|
| 08-Sep-2024 |
Andreas Gohr <andi@splitbrain.org> |
use a dispatcher to access static image files
This makes it possible to replace default images in an update safe way. It also addresses the issue raised in dokuwiki/docker#16
A .htaccess rewrite ca
use a dispatcher to access static image files
This makes it possible to replace default images in an update safe way. It also addresses the issue raised in dokuwiki/docker#16
A .htaccess rewrite catches any direct accesses that might come in from plugins.
show more ...
|
| #
1b2deed9
|
| 15-Sep-2023 |
fiwswe <fiwswe@fwml.de> |
Use str_starts_with/str_ends_with
|
| #
90fb952c
|
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
code style: operator spacing
|
| #
7d34963b
|
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
coding style: control flow line breaks
|
| #
8553d24d
|
| 30-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector renames
|
| #
bff2c9d2
|
| 29-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector fixes to lib/plugin/acl
|
| #
0489c64b
|
| 16-Aug-2020 |
Moisés Braga Ribeiro <moisesbr@gmail.com> |
Changes according to revisions in https://github.com/moisesbr-dw/dokuwiki/pull/2
Many minor details and use of Sort::xyz() instead of intl_xyz() in files outside the "inc" folder.
|
| #
44eedca8
|
| 19-May-2020 |
Moisés Braga Ribeiro <moisesbr@gmail.com> |
Access Control List Management
All sortable lists: - tree list of namespaces and pages - drop-down list with users and groups - rule list by page/namespace (main sort) - [enhancement] rule list by u
Access Control List Management
All sortable lists: - tree list of namespaces and pages - drop-down list with users and groups - rule list by page/namespace (main sort) - [enhancement] rule list by user/group (secondary sort)
show more ...
|
| #
ff419d89
|
| 30-Oct-2019 |
Syntaxseed <825423+syntaxseed@users.noreply.github.com> |
Final project-wide check of curly brace deprecations.
|
| #
5312cb0b
|
| 03-Oct-2019 |
Syntaxseed <825423+syntaxseed@users.noreply.github.com> |
Fix PHP 7.3 deprecations in lib/ directory.
|
| #
7ecc081f
|
| 15-Oct-2019 |
Andreas Gohr <gohr@cosmocode.de> |
ACL Plugin: make item formatter public again
The formatter needs to be public to be called from html_buildlist()
|
| #
55cc5b99
|
| 15-Oct-2019 |
Andreas Gohr <gohr@cosmocode.de> |
Merge branch 'pr/2871' into pull-request-2871
* pr/2871: Rename _acl_add to _acl_addOrUpdate Fix #1115
|
| #
32168a78
|
| 27-Sep-2019 |
Guillaume Turri <guillaume.turri@gmail.com> |
Rename _acl_add to _acl_addOrUpdate
because that's what this method actually does now
|
| #
3f1e0037
|
| 27-Sep-2019 |
Guillaume Turri <guillaume.turri@gmail.com> |
Fix #1115
without this patch calling _acl_add may result in a corrupted acl.auth.php file. This is the case when we're adding a config for a user and a scope with an existing config.
The fix is jus
Fix #1115
without this patch calling _acl_add may result in a corrupted acl.auth.php file. This is the case when we're adding a config for a user and a scope with an existing config.
The fix is just to call the _acl_del method before perming the addition.
Note that this _acl_add method is currently called from two places: - from admin_plugin_acl.handle() which was explicitely calling _acl_del before - from remote_plugin_acl.addAcl, which can actually result in a corrupted file
show more ...
|
| #
923e149a
|
| 15-Feb-2019 |
Michael Große <mic.grosse@googlemail.com> |
Merge branch 'master' into psr2
|
| #
e7f8ebf3
|
| 08-Jan-2019 |
Phy <git@phy25.com> |
fix ACL admin footnote JS error, fixes #2540
- ACL's hand-written template doesn't use div.content to wrap the footnote content - jQuery object existence check should use $obj.length
|
| #
a4e3d556
|
| 11-May-2018 |
Andreas Gohr <andi@splitbrain.org> |
PSR-2 for ACL plugin
|
| #
3dc2d50c
|
| 27-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
visibility declarations in plugins
|
| #
64159a61
|
| 27-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
line lengths shortened
This makes sure all files use line lenghts shorter than 120 characters.
This is a quick fix. It might not always be the nicest change.
|
| #
b4f2363a
|
| 27-Apr-2018 |
Andreas Gohr <andi@splitbrain.org> |
remove DOKU_INC checks
There is no need for this check, since these files should not have any main code that is executed on direct call.
Fixes PSR1.Files.SideEffects.FoundWithSymbols
|
| #
b8ffd90f
|
| 11-May-2016 |
Gerrit Uitslag <klapinklapin@gmail.com> |
Merge remote-tracking branch 'origin/remoteapiGetversions' into duchon-acl_list_xmlrpc
Conflicts: inc/RemoteAPICore.php
|
| #
51d83b85
|
| 18-Jul-2015 |
Andreas Gohr <andi@splitbrain.org> |
Merge pull request #1176 from splitbrain/ioreplaceinfile
Add IO function to replace lines in a file (new)
|