StringUtils deprecated::equals()

static bool equals(string $knownString, string $userInput)

Compares two strings.

This method implements a constant-time algorithm to compare strings. Regardless of the used implementation, it will leak length information.

Parameters

string $knownString The string of known length to compare against
string $userInput The string that the user can control

Return Value

bool true if the two strings are the same, false otherwise
doc_Symfony
2016-10-28 06:33:16
Comments
Leave a Comment

Please login to continue.