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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user