From b97ec5d0c017c2d0342514f1075754bbb2419710 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 23 Jan 2008 18:53:52 +0000 Subject: * lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb, test/logger/test_logger.rb, test/ruby/test_regexp.rb: fix tests. [ruby-dev:33336] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open-uri.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/open-uri.rb') diff --git a/lib/open-uri.rb b/lib/open-uri.rb index a981f58eda..2b6cd8fd65 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -433,7 +433,7 @@ module OpenURI subtype = $2.downcase parameters = [] $3.scan(/;#{RE_LWS}?(#{RE_TOKEN})#{RE_LWS}?=#{RE_LWS}?(?:(#{RE_TOKEN})|(#{RE_QUOTED_STRING}))/no) {|att, val, qval| - val = qval.gsub(/[\r\n\t !#-\[\]-~\x80-\xff]+|(\\[\x00-\x7f])/) { $1 ? $1[1,1] : $& } if qval + val = qval.gsub(/[\r\n\t !#-\[\]-~\x80-\xff]+|(\\[\x00-\x7f])/n) { $1 ? $1[1,1] : $& } if qval parameters << [att.downcase, val] } ["#{type}/#{subtype}", *parameters] -- cgit v1.2.3