php8 fix
authorAlan <alan@roojs.com>
Wed, 23 Feb 2022 08:38:49 +0000 (16:38 +0800)
committerAlan <alan@roojs.com>
Wed, 23 Feb 2022 08:38:49 +0000 (16:38 +0800)
Text/Password.php

index 715c8af..e8704fd 100644 (file)
@@ -187,7 +187,7 @@ class Text_Password {
         $tmp = '';
 
         for ($i = 0; $i < strlen($login); $i++) {
-            $next = ord($login{$i}) ^ $key;
+            $next = ord($login[$i]) ^ $key;
             if ($next > 255) {
                 $next -= 255;
             } elseif ($next < 0) {