summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Rybka <krzysztof.rybka@gmail.com>2019-06-05 15:23:39 +0200
committerKrzysztof Rybka <krzysztof.rybka@gmail.com>2019-06-05 15:24:45 +0200
commitabad221e43c21e0fa2cadc38ae0504e62b45186f (patch)
tree17d49500fc0dc447e51231b1076e7103b89a7551
parentbd3f05411eef72d9acf174132e7a8bc232b313e5 (diff)
downloadrack-abad221e43c21e0fa2cadc38ae0504e62b45186f.tar.gz
Interpolate digest args
-rw-r--r--lib/rack/auth/digest/md5.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/auth/digest/md5.rb b/lib/rack/auth/digest/md5.rb
index 47675b51..62bff984 100644
--- a/lib/rack/auth/digest/md5.rb
+++ b/lib/rack/auth/digest/md5.rb
@@ -122,7 +122,7 @@ module Rack
def digest(auth, password)
password_hash = passwords_hashed? ? password : H(A1(auth, password))
- KD(password_hash, [ auth.nonce, auth.nc, auth.cnonce, QOP, H(A2(auth)) ] * ':')
+ KD password_hash, "#{auth.nonce}:#{auth.nc}:#{auth.cnonce}:#{QOP}:#{H A2(auth)}"
end
end