Skip to content

Commit

Permalink
Merge pull request openid#70 from pierre-pretorius/master
Browse files Browse the repository at this point in the history
Allow expecting a parameter to be nil during return_to verification.
  • Loading branch information
dennisreimann committed Jan 27, 2014
2 parents 79fad48 + 708e992 commit 457b2c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openid/consumer/idres.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def verify_return_to_args(msg_return_to)
query = @message.to_post_args
return_to_parsed_query.each_pair do |rt_key, rt_val|
msg_val = query[rt_key]
if msg_val.nil?
if msg_val.nil? && !rt_val.nil?
raise ProtocolError, "Message missing return_to argument '#{rt_key}'"
elsif msg_val != rt_val
raise ProtocolError, ("Parameter '#{rt_key}' value "\
Expand Down

0 comments on commit 457b2c5

Please sign in to comment.