summaryrefslogtreecommitdiff
path: root/lib/cgi/util.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi/util.rb')
-rw-r--r--lib/cgi/util.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb
index 7968c9326e..d2657ab981 100644
--- a/lib/cgi/util.rb
+++ b/lib/cgi/util.rb
@@ -16,10 +16,6 @@ module CGI::Util
# string = CGI::unescape("%27Stop%21%27+said+Fred")
# # => "'Stop!' said Fred"
def unescape(string,encoding=@@accept_charset)
- _unescape(string,encoding)
- end
-
- private def _unescape(string, encoding)
str=string.tr('+', ' ').b.gsub(/((?:%[0-9a-fA-F]{2})+)/) do |m|
[m.delete('%')].pack('H*')
end.force_encoding(encoding)