php fix in google-api/service/apiUtils.php

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2022-01-23 18:37:09 +01:00
parent a0b0437322
commit 5d3c617044

View File

@ -55,7 +55,7 @@ class apiUtils {
$strlenVar = strlen($str); $strlenVar = strlen($str);
$d = $ret = 0; $d = $ret = 0;
for ($count = 0; $count < $strlenVar; ++ $count) { for ($count = 0; $count < $strlenVar; ++ $count) {
$ordinalValue = ord($str{$ret}); $ordinalValue = ord($str[$ret]);
switch (true) { switch (true) {
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)): case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
// characters U-00000000 - U-0000007F (same as ASCII) // characters U-00000000 - U-0000007F (same as ASCII)
@ -114,4 +114,4 @@ class apiUtils {
} }
return $normalized; return $normalized;
} }
} }