lib/rodauth/features/oauth_application_management.rb in rodauth-oauth-1.0.0.pre.beta1 vs lib/rodauth/features/oauth_application_management.rb in rodauth-oauth-1.0.0.pre.beta2
- old
+ new
@@ -163,13 +163,13 @@
if value.respond_to?(:each)
value.each do |uri|
next if uri.empty?
- set_field_error(key, invalid_url_message) unless check_valid_uri?(uri)
+ set_field_error(key, invalid_url_message) unless check_valid_no_fragment_uri?(uri)
end
else
- set_field_error(key, invalid_url_message) unless check_valid_uri?(value)
+ set_field_error(key, invalid_url_message) unless check_valid_no_fragment_uri?(value)
end
elsif key == oauth_application_scopes_param
value.each do |scope|
set_field_error(key, oauth_invalid_scope_message) unless oauth_application_scopes.include?(scope)