Browse Source

2018-03-11

Visman 7 years ago
parent
commit
8b2b97d2d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Core/Secury.php

+ 1 - 1
app/Core/Secury.php

@@ -119,7 +119,7 @@ class Secury
         $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
         $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
         $result = '';
         $result = '';
         for ($i = 0; $i < $len; ++$i) {
         for ($i = 0; $i < $len; ++$i) {
-            $result .= \substr($chars, (\ord($key[$i]) % \strlen($chars)), 1);
+            $result .= $chars{\ord($key{$i}) % 64};
         }
         }
         return $result;
         return $result;
     }
     }