diff options
Diffstat (limited to 'lang/ruby18-base/patches/patch-ao')
-rw-r--r-- | lang/ruby18-base/patches/patch-ao | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-ao b/lang/ruby18-base/patches/patch-ao new file mode 100644 index 00000000000..a7308e638ec --- /dev/null +++ b/lang/ruby18-base/patches/patch-ao @@ -0,0 +1,13 @@ +$NetBSD: patch-ao,v 1.1.1.1 2005/03/06 16:36:57 taca Exp $ + +--- lib/webrick/httpauth.rb.orig 2004-12-18 15:17:33.000000000 +0900 ++++ lib/webrick/httpauth.rb +@@ -22,7 +22,7 @@ module WEBrick + user = pass = nil + if /^Basic\s+(.*)/o =~ req[req_field] + userpass = $1 +- user, pass = decode64(userpass).split(":", 2) ++ user, pass = userpass.unpack("m*")[0].split(":", 2) + end + if block.call(user, pass) + req.user = user |