summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Burschka2014-11-17 03:00:38 +0100
committerChristoph Burschka2014-11-17 03:00:38 +0100
commit5722bd0c9929187a48acf698828ecbc6d46a6d2d (patch)
tree682a0986397e65db5e1bd632e54ce74fef19731a
parenthtpasswd readme: Format inline code. (diff)
downloadejabberd-auth-php-5722bd0c9929187a48acf698828ecbc6d46a6d2d.tar.gz
PHP code style in htpasswd.inc
-rw-r--r--plugins/htpasswd/htpasswd.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/htpasswd/htpasswd.inc b/plugins/htpasswd/htpasswd.inc
index 903940b..32f57ad 100644
--- a/plugins/htpasswd/htpasswd.inc
+++ b/plugins/htpasswd/htpasswd.inc
@@ -47,14 +47,14 @@ function htpasswd_apr_md5($clear, $salt) {
for($i = $len; $i > 0; $i >>= 1) {
$text .= ($i & 1) ? chr(0) : $clear{0};
}
- $bin = pack("H32", md5($text));
+ $bin = pack('H32', md5($text));
for($i = 0; $i < 1000; $i++) {
$new = ($i & 1) ? $clear : $bin;
if ($i % 3) $new .= $salt;
if ($i % 7) $new .= $clear;
$new .= ($i & 1) ? $bin : $clear;
- $bin = pack("H32", md5($new));
+ $bin = pack('H32', md5($new));
}
$tmp = '';