Skip to content

fix: prevent special characters in category type

Henning Leutz requested to merge next-2.0.x into main

In this commit, we have added some code to sanitize the $type variable in the categories.php file. This will prevent special characters from making it into category names, which could potentially have caused issues with how those categories are displayed or used. Specifically, we're removing all characters that aren't basic multilingual plane Unicode characters and replacing double quotes, single quotes, ampersands, less than, and greater than symbols with hyphens.

Related: quiqqer/core#1447

(cherry picked from commit b1cd0e7f)

Co-authored-by: Henning leutz@pcsg.de

Merge Request-Berichte

Lade