From 015725191b3a45a1a950e1289dda690e230470af Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 1 Dec 2016 12:07:25 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#100 where WordPress creating a fake mb_strlen() function made PW think that multibyte support was installed. --- 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 82d35cb5..4280e904 100644 --- a/wire/core/Sanitizer.php +++ b/wire/core/Sanitizer.php @@ -68,7 +68,7 @@ class Sanitizer extends Wire { * */ public function __construct() { - $this->multibyteSupport = function_exists("mb_strlen"); + $this->multibyteSupport = function_exists("mb_internal_encoding"); if($this->multibyteSupport) mb_internal_encoding("UTF-8"); $this->allowedASCII = str_split('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'); }