summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/htpasswd/htpasswd.inc2
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;
}
/**