[CORE] Fix 'Array and string offset access syntax with curly braces is deprecated' in AuthCryptModule and DirectionDetectorPlugin

This commit is contained in:
Hugo Sales 2020-05-04 10:42:13 +00:00 committed by Diogo Peralta Cordeiro
parent 7b1c3dbb3f
commit 3f8f77dff1
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class AuthCryptModule extends AuthenticationModule
$salt = '';
for ($i=0; $i<$len; $i++) {
$salt .= $chars{mt_rand(0, strlen($chars)-1)};
$salt .= $chars[mt_rand(0, strlen($chars)-1)];
}
return $salt;

View File

@ -143,7 +143,7 @@ class DirectionDetectorPlugin extends Plugin {
$len = strlen($str);
for($i = 0; $i < $len; $i++) {
$in = ord($str{$i});
$in = ord($str[$i]);
if (0 == $mState) {
// When mState is zero we expect either a US-ASCII character or a
// multi-octet sequence.