mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Fix $sanitizer->selectorValue() issue where it filtered out some UTF-8 symbols it doesn't need to per processwire/processwire-issues#54
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user