Skip to content

Instantly share code, notes, and snippets.

@stopdropandrew
Created March 23, 2010 20:25
Show Gist options
  • Save stopdropandrew/341603 to your computer and use it in GitHub Desktop.
Save stopdropandrew/341603 to your computer and use it in GitHub Desktop.
~/workspace/kongregate (comment_ratings) $>git diff vendor/
diff --git a/vendor/gems/rack-1.0.1/lib/rack/utils.rb b/vendor/gems/rack-1.0.1/lib/rack/utils.rb
index d54c928..4614d95 100644
--- a/vendor/gems/rack-1.0.1/lib/rack/utils.rb
+++ b/vendor/gems/rack-1.0.1/lib/rack/utils.rb
@@ -22,7 +22,7 @@ module Rack
def unescape(s)
s.tr('+', ' ').gsub(/((?:%[0-9a-fA-F]{2})+)/n){
[$1.delete('%')].pack('H*')
- }
+ }.force_encoding('utf-8')
end
module_function :unescape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment