diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/htpasswd/htpasswd.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/htpasswd/htpasswd.inc b/plugins/htpasswd/htpasswd.inc index 32f57ad..132efcf 100644 --- a/plugins/htpasswd/htpasswd.inc +++ b/plugins/htpasswd/htpasswd.inc @@ -30,7 +30,7 @@ function htpasswd_check($clear, $hash, $config) { $result = $clear; } - return hash_equals($result, $hash); + return function_exists('hash_equals') ? hash_equals($result, $hash) : $result === $hash; } /** |