Skip to content
Browse files

Set origin to nil if it's blank.

  • Loading branch information...
1 parent 7fd2a78 commit a504c17fd6a63bd1fafd3cabf052542c0f45623b Michael Bleigh committed Feb 11, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 oa-core/lib/omniauth/strategy.rb
View
2 oa-core/lib/omniauth/strategy.rb
@@ -37,6 +37,8 @@ def call!(env)
end
elsif current_path == callback_path
env['omniauth.origin'] = session.delete('omniauth.origin')
+ env['omniauth.origin'] = nil if env['omniauth.origin'] == ''
+
callback_phase
else
if respond_to?(:other_phase)

0 comments on commit a504c17

Please sign in to comment.
Something went wrong with that request. Please try again.