diff options
author | Krzysztof Rybka <krzysztof.rybka@gmail.com> | 2019-06-05 15:23:39 +0200 |
---|---|---|
committer | Krzysztof Rybka <krzysztof.rybka@gmail.com> | 2019-06-05 15:24:45 +0200 |
commit | abad221e43c21e0fa2cadc38ae0504e62b45186f (patch) | |
tree | 17d49500fc0dc447e51231b1076e7103b89a7551 | |
parent | bd3f05411eef72d9acf174132e7a8bc232b313e5 (diff) | |
download | rack-abad221e43c21e0fa2cadc38ae0504e62b45186f.tar.gz |
Interpolate digest args
-rw-r--r-- | lib/rack/auth/digest/md5.rb | 2 |
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 |