Bug #472

No ord in Net::HTTP#urlencode

Added by Junegunn Choi over 6 years ago. Updated about 4 years ago.

[ruby-core:18368]
Status:Closed
Priority:Normal
Assignee:-
ruby -v: Backport:

Description

=begin
def urlencode(str)
str.gsub(/[a-zA-Z0-9_.-]/n) { sprintf('%%%02x', $&[0]) }
end

Since the semantics of String#[] has changed in 1.9, we need to call ord method.
Patch attached.
=end

lib_net_http.patch Magnifier (412 Bytes) Junegunn Choi, 08/23/2008 01:50 AM

History

#1 Updated by Yui NARUSE over 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r18805.
=end

Also available in: Atom PDF