Permalink
Browse files

Merge pull request #594 from slainer68/master

Use Rack::Utils.escape instead of CGI
  • Loading branch information...
2 parents 13c3691 + c0e7743 commit 7f585bfb53d75ae5f20a810e50c17ea2dbb31d70 @sferik sferik committed Apr 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 7f585bf

Please sign in to comment.