From 832421bbcabf89310fa47714319be5f88b205d4f Mon Sep 17 00:00:00 2001 From: chamaeleon-nitr Date: Mon, 10 Nov 2014 17:43:16 +0300 Subject: [PATCH] Bug in String.php In function IsUTF8 --- Classes/PHPExcel/Shared/String.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Shared/String.php b/Classes/PHPExcel/Shared/String.php index fc86d537..4921dc95 100644 --- a/Classes/PHPExcel/Shared/String.php +++ b/Classes/PHPExcel/Shared/String.php @@ -403,7 +403,7 @@ class PHPExcel_Shared_String * @return boolean */ public static function IsUTF8($value = '') { - return $string === '' || preg_match('/^./su', $string) === 1; + return $value === '' || preg_match('/^./su', $value) === 1; } /**