composer update
This commit is contained in:
8
vendor/symfony/polyfill-php56/Php56.php
vendored
8
vendor/symfony/polyfill-php56/Php56.php
vendored
@@ -24,13 +24,13 @@ final class Php56
|
||||
public static function hash_equals($knownString, $userInput)
|
||||
{
|
||||
if (!\is_string($knownString)) {
|
||||
trigger_error('Expected known_string to be a string, '.gettype($knownString).' given', E_USER_WARNING);
|
||||
trigger_error('Expected known_string to be a string, '.\gettype($knownString).' given', E_USER_WARNING);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!\is_string($userInput)) {
|
||||
trigger_error('Expected user_input to be a string, '.gettype($userInput).' given', E_USER_WARNING);
|
||||
trigger_error('Expected user_input to be a string, '.\gettype($userInput).' given', E_USER_WARNING);
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -124,11 +124,11 @@ final class Php56
|
||||
|
||||
// Encode leading/trailing spaces if self::LDAP_ESCAPE_DN is passed
|
||||
if ($flags & self::LDAP_ESCAPE_DN) {
|
||||
if ($result[0] === ' ') {
|
||||
if (' ' === $result[0]) {
|
||||
$result = '\\20'.substr($result, 1);
|
||||
}
|
||||
|
||||
if ($result[\strlen($result) - 1] === ' ') {
|
||||
if (' ' === $result[\strlen($result) - 1]) {
|
||||
$result = substr($result, 0, -1).'\\20';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user