Skip to content

Instantly share code, notes, and snippets.

@pvh
Created June 23, 2010 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvh/449375 to your computer and use it in GitHub Desktop.
Save pvh/449375 to your computer and use it in GitHub Desktop.
diff --git a/lib/swirl/ec2.rb b/lib/swirl/ec2.rb
index 19b2497..ed02b3a 100644
--- a/lib/swirl/ec2.rb
+++ b/lib/swirl/ec2.rb
@@ -35,7 +35,7 @@ module Swirl
end
def escape(value)
- CGI.escape(value).gsub(/\+/, "%20")
+ CGI.escape(value.to_s).gsub(/\+/, "%20")
end
def compile_sorted_form_data(query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment