mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Revert "FIX: User website allows new TLDs"
This commit is contained in:
parent
fa1b6da988
commit
8dea70d354
2 changed files with 7 additions and 12 deletions
|
@ -62,12 +62,6 @@ describe UserProfile do
|
|||
expect(Fabricate.build(:user_profile, user: user, website: "https://google.com")).to be_valid
|
||||
end
|
||||
|
||||
it "recognizes new TLDs" do
|
||||
expect(Fabricate.build(:user_profile, user: user, website: "http://discourse.productions")).to be_valid
|
||||
expect(Fabricate.build(:user_profile, user: user, website: "https://website.vermögensberatung")).to be_valid
|
||||
expect(Fabricate.build(:user_profile, user: user, website: "http://site.notavalidtld")).not_to be_valid
|
||||
end
|
||||
|
||||
it "validates website domain if user_website_domains_whitelist setting is present" do
|
||||
SiteSetting.user_website_domains_whitelist = "discourse.org"
|
||||
expect(Fabricate.build(:user_profile, user: user, website: "https://google.com")).not_to be_valid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue