1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00

Fix issue processwire/processwire-issues#1342 using fix proposed by @openidauthority processwire/processwire-requests#393#issuecomment-867593330

This commit is contained in:
Ryan Cramer
2021-07-16 13:39:05 -04:00
parent 8961001001
commit ec761e75bd

View File

@@ -842,6 +842,8 @@ class Sanitizer extends Wire {
} else if($inBlacklist || !strlen(trim($c)) || ctype_cntrl($c)) {
// character does not resolve to something visible or is in blacklist
$replacements[] = $c;
} else if($whitelist === false) {
// whitelist disabled: allow everything that is not blacklisted
} else {
// character that is not in whitelist, double check case variants
$cLower = $tt->strtolower($c);