Skip to content

Commit 4fb5f65

Browse files
committed
Typo fix and error message tweak
1 parent 5adbf53 commit 4fb5f65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

control/templates/shared/add_vhost_test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

control/webapp/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)