pkgsrc/www/ruby-webrick/patches/patch-ab

14 lines
547 B
Text
Raw Normal View History

$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.")