diff options
Diffstat (limited to 'lang/ruby18-base/patches/patch-ap')
-rw-r--r-- | lang/ruby18-base/patches/patch-ap | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-ap b/lang/ruby18-base/patches/patch-ap new file mode 100644 index 00000000000..5e7ff901e78 --- /dev/null +++ b/lang/ruby18-base/patches/patch-ap @@ -0,0 +1,13 @@ +$NetBSD: patch-ap,v 1.1.1.1 2005/03/06 16:36:57 taca Exp $ + +--- lib/webrick/httpauth/basicauth.rb.orig 2004-12-18 15:17:33.000000000 +0900 ++++ lib/webrick/httpauth/basicauth.rb +@@ -34,7 +34,7 @@ module WEBrick + unless basic_credentials = check_scheme(req) + challenge(req, res) + end +- userid, password = decode64(basic_credentials).split(":", 2) ++ userid, password = basic_credentials.unpack("m*")[0].split(":", 2) + password ||= "" + if userid.empty? + error("user id was not given.") |