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:
@@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user