Skip to content

Commit

Permalink
Merge pull request #542 from snyff/patch-2
Browse files Browse the repository at this point in the history
Update md5.rb
  • Loading branch information
rkh committed Apr 17, 2013
2 parents bba55fc + 9a953b1 commit a04035d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/auth/digest/md5.rb
Expand Up @@ -96,7 +96,7 @@ def valid_nonce?(auth)

def valid_digest?(auth)
pw = @authenticator.call(auth.username)
pw && digest(auth, pw) == auth.response
pw && Rack::Utils.secure_compare(digest(auth, pw), auth.response)
end

def md5(data)
Expand Down

0 comments on commit a04035d

Please sign in to comment.