Project

General

Profile

Backport #5149 ยป uri.patch

regularfry (Alex Young), 08/03/2011 01:15 AM

View differences:

common.rb 2011-08-02 17:08:21.000000000 +0100
rescue
end
end
raise ArgumentError, "invalid %-encoding (#{str})" unless /\A(?:%\h\h|[^%]+)*\z/ =~ str
raise ArgumentError, "invalid %-encoding (#{str})" unless /\A(?:%\h\h|[^%])*\z/ =~ str
str.gsub(/\+|%\h\h/, TBLDECWWWCOMP_).force_encoding(enc)
end
    (1-1/1)