lib/authlogic_rpx/helper.rb in Empact-authlogic_rpx-1.1.6 vs lib/authlogic_rpx/helper.rb in Empact-authlogic_rpx-1.1.7
- old
+ new
@@ -34,10 +34,11 @@
end
private
def build_token_url!( options )
- options.delete( :return_url ) + (options[:return_url].to_s.include?('?') ? '&' : '?') + (
+ url = options.delete( :return_url )
+ url + (url.include?('?') ? '&' : '?') + (
{ :authenticity_token => form_authenticity_token, :add_rpx => options.delete( :add_rpx ) }.collect { |n| "#{n[0]}=#{ u(n[1]) }" if n[1] }
).compact.join('&')
end
end
end
\ No newline at end of file