mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +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)) {
|
} else if($inBlacklist || !strlen(trim($c)) || ctype_cntrl($c)) {
|
||||||
// character does not resolve to something visible or is in blacklist
|
// character does not resolve to something visible or is in blacklist
|
||||||
$replacements[] = $c;
|
$replacements[] = $c;
|
||||||
|
} else if($whitelist === false) {
|
||||||
|
// whitelist disabled: allow everything that is not blacklisted
|
||||||
} else {
|
} else {
|
||||||
// character that is not in whitelist, double check case variants
|
// character that is not in whitelist, double check case variants
|
||||||
$cLower = $tt->strtolower($c);
|
$cLower = $tt->strtolower($c);
|
||||||
|
Reference in New Issue
Block a user