mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
Treat non-ascii URLs in UrlValidator
.
This commit is contained in:
@ -23,6 +23,8 @@ RSpec.describe UrlValidator do
|
||||
[
|
||||
"http://discourse.productions",
|
||||
"https://google.com",
|
||||
'http://xn--nw2a.xn--j6w193g/',
|
||||
"http://見.香港/",
|
||||
].each do |valid_url|
|
||||
it "#{valid_url} should be valid" do
|
||||
record.website = valid_url
|
||||
|
Reference in New Issue
Block a user