From 118d2e9a22ccc745380ebb358b02fbffe29c4a4b Mon Sep 17 00:00:00 2001 From: xia0ta0 Date: Fri, 12 Dec 2014 09:36:14 +0800 Subject: [PATCH] * code for task#2172. --- framework/helper.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/helper.class.php b/framework/helper.class.php index 75a778ee06..b642c07d87 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -323,7 +323,7 @@ class helper $len = strlen($string); for($i=0; $i<$len; $i++) { - $c = ord($str[$i]); + $c = ord($string[$i]); if($c > 128) { if(($c >= 254)) return false; @@ -337,7 +337,7 @@ class helper while($bits > 1) { $i++; - $b=ord($str[$i]); + $b=ord($string[$i]); if($b < 128 || $b > 191) return false; $bits--; }