Use Rack::Utils escape instead of CGI as it's included in Rack and may fix the travis build :)

This commit is contained in:
slainer68 2012-04-11 01:06:05 +02:00
parent a364cf4bea
commit c0e7743b14
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ module OmniAuth
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