Backport #5149 ยป uri.patch
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
|
||