Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix validation pattern for ServerNames in create-vhost and update-vhost #52

Merged
merged 3 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions imageroot/actions/create-vhost/validate-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@
"ServerNames": {
"type": "array",
"items": {
"type": "string",
"format":"hostname"
},
"type": "string",
"format": "hostname",
"pattern": "\\."
},
"title": "ServerNames",
"description": "Fully qualified domain names as virtualhost."
},
Expand Down
3 changes: 2 additions & 1 deletion imageroot/actions/update-vhost/validate-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"type": "array",
"items": {
"type": "string",
"format": "hostname"
"format": "hostname",
"pattern": "\\."
},
"title": "ServerNames",
"description": "Fully qualified domain names as virtualhost."
Expand Down
1 change: 1 addition & 0 deletions ui/public/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"Edit_Virtualhosts":"Edit virtual host {name}",
"title": "Virtual hosts",
"ServerNames_format": "Domain name not allowed : {error}",
"ServerNames_pattern": "Must be a valid fully qualified domain name: {error}",
"type_to_confirm": "Type <strong>{name}</strong> to confirm deletion",
"delete_virtualhosts_confirm": "Delete virtual host <strong>{name}</strong>? All data will be deleted. This action is <strong>NOT</strong> reversible",
"sftpgo_url": "SFTPGo WebClient",
Expand Down
Loading