Skip to content

Commit

Permalink
Sigh, thinking backports was a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi authored and rkh committed Jun 16, 2011
1 parent 4eab650 commit 86763dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/backports/uri/common.rb
Expand Up @@ -22,7 +22,7 @@ module URI
def self.encode_www_form_component(str)
if RUBY_VERSION < "1.9" && $KCODE =~ /u/i
str.gsub(/([^ a-zA-Z0-9_.-]+)/) do
'%' + $1.unpack('H2' * $1.bytesize).join('%').upcase
'%' + $1.unpack('H2' * Rack::Utils.bytesize($1)).join('%').upcase
end.tr(' ', '+')
else
if TBLENCWWWCOMP_.empty?
Expand Down

0 comments on commit 86763dc

Please sign in to comment.