File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ <h2>Test custom domain</h2>
5454 < input type ="hidden " name ="confirm " value ="on ">
5555 {% if valid[domain] == (true, true) or valid[prefixed] == (true, true) %}
5656 < input type ="submit " class ="btn btn-outline-primary " value ="Looks good, add domain ">
57- {% elif valid[domain] != (none, none) or valid[domain ] != (none, none) %}
57+ {% elif valid[domain] != (none, none) or valid[prefixed ] != (none, none) %}
5858 < input type ="submit " class ="btn btn-outline-danger " value ="Add domain anyway ">
5959 {% endif %}
6060</ form >
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def validate_domain_docroot(owner, path):
9696 if not path :
9797 return path , None
9898 if any (ch in path for ch in string .whitespace + "\\ " + '"' + "'" ):
99- return path , "Document roots cannot contain spaces or quotes."
99+ return path , "Document roots cannot contain spaces, backslashes or quotes."
100100 if path .startswith ("public_html/" ):
101101 path = path .replace ("public_html/" , "" , 1 )
102102 if isinstance (owner , Member ):
You can’t perform that action at this time.
0 commit comments