1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00

Fix issue processwire/processwire-issues#100 where WordPress creating a fake mb_strlen() function made PW think that multibyte support was installed.

This commit is contained in:
Ryan Cramer
2016-12-01 12:07:25 -05:00
parent 9cdf68e6b8
commit 015725191b

View File

@@ -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');
}