This commit is contained in:
Renaud Boyer 2020-12-06 22:06:03 +01:00
parent 4e93e511ec
commit f3303ee6bb
1 changed files with 2 additions and 2 deletions

View File

@ -35,10 +35,10 @@ def custom_domain():
new_domain = new_custom_domain_form.domain.data.lower().strip()
if new_domain.startswith("http://"):
new_domain = new_domain[len("http://") :]
new_domain = new_domain[len("http://"):]
if new_domain.startswith("https://"):
new_domain = new_domain[len("https://") :]
new_domain = new_domain[len("https://"):]
if SLDomain.get_by(domain=new_domain):
flash("A custom domain cannot be a built-in domain.", "error")