[Source]
# File lib/cgi/pathmap.rb, line 9 9: def formdecode 10: self.gsub('+', ' ').urldecode 11: end
# File lib/cgi/pathmap.rb, line 6 6: def urldecode 7: self.gsub(/%([A-Fa-f0-9]{2})/) {|s| [$1.hex].pack("C") } 8: end
# File lib/cgi/pathmap.rb, line 12 12: def urlencode 13: self.gsub('%', '%25').gsub(' ', '%20').gsub('?', '%3F') 14: end
[Validate]