Permalink
Browse files

Use Rack::Utils escape instead of CGI as it's included in Rack and ma…

…y fix the travis build :)
  • Loading branch information...
1 parent a364cf4 commit c0e7743b145a738af6e48e6d91a0e3f946f22bc7 @nicolasblanco committed Apr 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/omniauth/failure_endpoint.rb
View
4 lib/omniauth/failure_endpoint.rb
@@ -38,7 +38,7 @@ def strategy_name_query_param
def origin_query_param
return "" unless env['omniauth.origin']
- "&origin=#{CGI.escape(env['omniauth.origin'])}"
+ "&origin=#{Rack::Utils.escape(env['omniauth.origin'])}"
end
end
-end
+end

0 comments on commit c0e7743

Please sign in to comment.