summaryrefslogtreecommitdiffstats
path: root/lib/public/security/stringutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/security/stringutils.php')
-rw-r--r--lib/public/security/stringutils.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/security/stringutils.php b/lib/public/security/stringutils.php
index 4f41fcf8262..7cf12ea2702 100644
--- a/lib/public/security/stringutils.php
+++ b/lib/public/security/stringutils.php
@@ -39,8 +39,9 @@ class StringUtils {
* @param string $input The input to compare against
* @return bool True if the two strings are equal, otherwise false.
* @since 8.0.0
+ * @deprecated 9.0.0 Use hash_equals
*/
public static function equals($expected, $input) {
- return \OC\Security\StringUtils::equals($expected, $input);
+ return hash_equals($expected, $input);
}
}