blob: 5e7ff901e786bfea9f61882122d53078844e2c02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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.")
|