From ec761e75bde4572135d4c4f76aed030bd54d9326 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 16 Jul 2021 13:39:05 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1342 using fix proposed by @openidauthority processwire/processwire-requests#393#issuecomment-867593330 --- wire/core/Sanitizer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wire/core/Sanitizer.php b/wire/core/Sanitizer.php index 6e8ef08c..4b337ba9 100644 --- a/wire/core/Sanitizer.php +++ b/wire/core/Sanitizer.php @@ -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);