Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a8f32e1c86
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.391 kB
require 'uri'
module ActiveSupport
if RUBY_VERSION == "1.9.1" && defined?(RUBY_PATCHLEVEL) && RUBY_PATCHLEVEL == 0
::URI::Parser.class_eval do
def unescape(str, escaped = @regexp[:ESCAPED])
enc = (str.encoding == Encoding::US_ASCII) ? Encoding::UTF_8 : str.encoding
str.gsub(escaped) { [$&[1, 2].hex].pack('C') }.force_encoding(enc)
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.