Skip to content
Snippets Groups Projects
Commit d5e8cf71 authored by Garvin Hicking's avatar Garvin Hicking Committed by Andreas Kienast
Browse files

[BUGFIX] Fix backend page tree filter with special characters

When filtering the page tree with characters that have
special meaning for a regular expression (for example,
")" or "(" or "?" and some others), the filtering would
return a "Page Tree error".

JavaScript does not have something like "preg_quote",
so this uses the escape string provided by the MDN
with fixed special characters.

Resolves: #104092
Releases: main, 12.4, 11.5
Change-Id: I4a29c62eaca8b7643c8ef78dda1d8337b3e1e53a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84785


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarJasmina Ließmann <minapokhalo+typo3@gmail.com>
Tested-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
Reviewed-by: default avatarJasmina Ließmann <minapokhalo+typo3@gmail.com>
Reviewed-by: default avatarAndreas Kienast <a.fernandez@scripting-base.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent b527a3e4
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment