History log of /dokuwiki/_test/tests/inc/html_secedit_pattern.test.php (Results 1 – 3 of 3)
Revision Date Author Comments
# ada0d779 15-Apr-2018 Michael Hamann <michael@content-space.de>

Prevent HTML and JS injection in section names

Before this change, HTML and some JS code (as far as it was not escaped
by json_encode) could be injected into the output as the closing pattern
that i

Prevent HTML and JS injection in section names

Before this change, HTML and some JS code (as far as it was not escaped
by json_encode) could be injected into the output as the closing pattern
that is checked by the regex is not escaped in JSON (see test case).

show more ...


# ec57f119 04-Jan-2018 LarsDW223 <lars_paulsen@web.de>

Refactored section edit

The data for the section edit button is now passed as an assoziative array which is
encoded in the '#<!-- EDIT(.*) -->#' placeholder as an JSON array.


# 2d3b082e 11-Sep-2017 Michael Große <grosse@cosmocode.de>

test: add tests for the section edit regex