763b4bf0e0
- Merge some fixes from Ruby 1.8.2 bundled version. Bump PKG_REVISION, ruby16-webric-1.3.1nb1.
13 lines
547 B
Text
13 lines
547 B
Text
$NetBSD: patch-ab,v 1.1 2005/01/28 14:20:44 taca Exp $
|
|
|
|
--- lib/webrick/httpauth/basicauth.rb.orig 2003-02-20 16:15:47.000000000 +0900
|
|
+++ lib/webrick/httpauth/basicauth.rb
|
|
@@ -35,7 +35,7 @@ module WEBrick
|
|
unless basic_credentials = check_scheme(req)
|
|
challenge(req, res)
|
|
end
|
|
- userid, password = decode64(basic_credentials).split(":", 2)
|
|
+ userid, password = Base64.decode64(basic_credentials).split(":", 2)
|
|
password ||= ""
|
|
if userid.empty?
|
|
error("user id was not given.")
|