diff options
| author | Luke Bratch <luke@bratch.co.uk> | 2017-04-09 19:58:40 +0100 |
|---|---|---|
| committer | Luke Bratch <luke@bratch.co.uk> | 2017-04-09 19:58:40 +0100 |
| commit | 03229527e1cd42fa2dc2dce39660b481041a7903 (patch) | |
| tree | 16430aa93082582bf7acc53612e7689bab0f4b8b | |
| parent | 64e8c88ddab2a8762114028abfa69fc4ae431bda (diff) | |
Make the password hash check case-insensitive
| -rw-r--r-- | dns.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ function getzone($domain, $password) { $zonelines = explode("\n", $string); $zonehash = explode(" ", $zonelines[0]); - if ($zonehash[sizeof($zonehash) - 1] == $password) { + if (strtolower($zonehash[sizeof($zonehash) - 1]) == strtolower($password)) { return $string; } else { return; |
