From 78e9b4748ddfff04e332ca2d5dd80804085c0b4f Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Tue, 1 Nov 2016 06:29:02 -0400 Subject: [PATCH] Fix $sanitizer->selectorValue() issue where it filtered out some UTF-8 symbols it doesn't need to per processwire/processwire-issues#54 --- wire/core/Sanitizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/Sanitizer.php b/wire/core/Sanitizer.php index a8da9f23..4be20356 100644 --- a/wire/core/Sanitizer.php +++ b/wire/core/Sanitizer.php @@ -1510,7 +1510,7 @@ class Sanitizer extends Wire { // value needs more filtering, replace all non-alphanumeric, non-single-quote and space chars // See: http://php.net/manual/en/regexp.reference.unicode.php // See: http://www.regular-expressions.info/unicode.html - $value = preg_replace('/[^[:alnum:]\pL\pN\pP\pM\p{Sm}\p{Sc}\p{Sk} \'\/]/u', ' ', $value); + $value = preg_replace('/[^[:alnum:]\pL\pN\pP\pM\p{S} \'\/]/u', ' ', $value); // replace multiple space characters in sequence with just 1 $value = preg_replace('/\s\s+/u', ' ', $value);