File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def unescape(string, encoding = @@accept_charset)
36
36
37
37
# URL-encode a string following RFC 3986
38
38
# Space characters (+" "+) are encoded with (+"%20"+)
39
- # url_encoded_string = CGI.escape ("'Stop!' said Fred")
39
+ # url_encoded_string = CGI.escapeURIComponent ("'Stop!' said Fred")
40
40
# # => "%27Stop%21%27%20said%20Fred"
41
41
def escapeURIComponent ( string )
42
42
encoding = string . encoding
@@ -48,7 +48,7 @@ def escapeURIComponent(string)
48
48
end
49
49
50
50
# URL-decode a string following RFC 3986 with encoding(optional).
51
- # string = CGI.unescape ("%27Stop%21%27+said%20Fred")
51
+ # string = CGI.unescapeURIComponent ("%27Stop%21%27+said%20Fred")
52
52
# # => "'Stop!'+said Fred"
53
53
def unescapeURIComponent ( string , encoding = @@accept_charset )
54
54
str = string . b
You can’t perform that action at this time.
0 commit comments