Skip to content

Commit

Permalink
Update redirect_uri_validator.rb
Browse files Browse the repository at this point in the history
port with a letter is not valid so using a number now
  • Loading branch information
mtparet committed Apr 9, 2015
1 parent 7af1ffc commit 50be57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/validators/redirect_uri_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def validate_each(record, attribute, value)
else
value.split.each do |val|
# To make the test pass, replace the * with 'a'
val = val.gsub('*', 'a') if Doorkeeper.configuration.wildcard_redirect_uri
val = val.gsub('*', '8') if Doorkeeper.configuration.wildcard_redirect_uri
uri = ::URI.parse(val)
return if native_redirect_uri?(uri)
record.errors.add(attribute, :fragment_present) unless uri.fragment.nil?
Expand Down

0 comments on commit 50be57a

Please sign in to comment.