Class: CGI
- Inherits:
-
Object
- Object
- CGI
- Defined in:
- lib/aws_sdb/service.rb
Overview
duck punch so that space converts to %20
Constant Summary collapse
- @@accept_charset =
"UTF-8"
Class Method Summary collapse
Class Method Details
.escape(string) ⇒ Object
15 16 17 18 19 |
# File 'lib/aws_sdb/service.rb', line 15 def CGI::escape(string) string.gsub(/([^a-zA-Z0-9_.-]+)/n) do '%' + $1.unpack('H2' * $1.size).join('%').upcase end end |