Skip to content

Commit

Permalink
Allow IDN
Browse files Browse the repository at this point in the history
This allows International Domain Names.
  • Loading branch information
TimothyAlexisVass authored and kritik committed May 30, 2024
1 parent 81ec151 commit 80e5024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validate_url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def filtered_options(value)
end

def validate_url(record, attribute, value, schemes)
uri = URI.parse(value)
uri = URI.parse(URI::Parser.new.escape(value)
host = uri && uri.host
scheme = uri && uri.scheme

Expand Down

0 comments on commit 80e5024

Please sign in to comment.