From e54f12b8d237fd6706b48af8b3f99a17ccfb1481 Mon Sep 17 00:00:00 2001 From: nahi Date: Wed, 4 Jul 2007 14:51:22 +0000 Subject: * lib/webrick/httpauth/authenticator.rb (WEBrick::HTTPAuth::Authenticator#check_scheme): auth-scheme must be treated as a case-insensitive token according to RFC 2617 section 1.2. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/webrick/httpauth/authenticator.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6d1a23e92..b92fa9730 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Jul 4 23:36:27 2007 NAKAMURA, Hiroshi + + * lib/webrick/httpauth/authenticator.rb + (WEBrick::HTTPAuth::Authenticator#check_scheme): auth-scheme must be + treated as a case-insensitive token according to RFC 2617 section 1.2. + Wed Jul 4 18:30:04 2007 Tanaka Akira * parse.y (mlhs_inner): new rule. [ruby-dev:31132] diff --git a/lib/webrick/httpauth/authenticator.rb b/lib/webrick/httpauth/authenticator.rb index fe2dbf4e0..f90d1bf75 100644 --- a/lib/webrick/httpauth/authenticator.rb +++ b/lib/webrick/httpauth/authenticator.rb @@ -42,7 +42,7 @@ module WEBrick error("no credentials in the request.") return nil end - unless match = /^#{@auth_scheme}\s+/.match(credentials) + unless match = /^#{@auth_scheme}\s+/i.match(credentials) error("invalid scheme in %s.", credentials) info("%s: %s", @request_field, credentials) if $DEBUG return nil -- cgit