* code for task#2172.

This commit is contained in:
xia0ta0
2014-12-12 09:36:14 +08:00
parent b6c6ff304b
commit 118d2e9a22
+2 -2
View File
@@ -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--;
}