Created
March 23, 2010 20:25
-
-
Save stopdropandrew/341603 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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