Bug #472 ยป lib_net_http.patch
lib/net/http.rb (working copy) | ||
---|---|---|
private :encode_kvpair
|
||
def urlencode(str)
|
||
str.gsub(/[^a-zA-Z0-9_\.\-]/n) { sprintf('%%%02x', $&[0]) }
|
||
str.gsub(/[^a-zA-Z0-9_\.\-]/n) { sprintf('%%%02x', $&[0].ord) }
|
||
end
|
||
private :urlencode
|
||