Skip to content

Commit

Permalink
Typo fix and error message tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rsa33 committed Nov 16, 2024
1 parent 5adbf53 commit 4fb5f65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion control/templates/shared/add_vhost_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2>Test custom domain</h2>
<input type="hidden" name="confirm" value="on">
{% if valid[domain] == (true, true) or valid[prefixed] == (true, true) %}
<input type="submit" class="btn btn-outline-primary" value="Looks good, add domain">
{% elif valid[domain] != (none, none) or valid[domain] != (none, none) %}
{% elif valid[domain] != (none, none) or valid[prefixed] != (none, none) %}
<input type="submit" class="btn btn-outline-danger" value="Add domain anyway">
{% endif %}
</form>
Expand Down
2 changes: 1 addition & 1 deletion control/webapp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def validate_domain_docroot(owner, path):
if not path:
return path, None
if any(ch in path for ch in string.whitespace + "\\" + '"' + "'"):
return path, "Document roots cannot contain spaces or quotes."
return path, "Document roots cannot contain spaces, backslashes or quotes."
if path.startswith("public_html/"):
path = path.replace("public_html/", "", 1)
if isinstance(owner, Member):
Expand Down

0 comments on commit 4fb5f65

Please sign in to comment.