mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-26 04:08:51 +00:00
fix #4874: improve error message for invalid hostname
Current error message is not correct because having underscores in domain names are perfectly valid, although it's not acceptable at host names, so it should be changed to "This is not a valid hostname". https://www.ietf.org/rfc/rfc1123.txt section 2.1 "Host Names and Numbers" https://www.rfc-editor.org/rfc/rfc2181#section-11 Signed-off-by: Amin Vakil <info@aminvakil.com> [TL: s/Host /host/ once more, reflow msg with 70cc & reword subject] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e61ffdd6ee
commit
2d613cac1f
@ -129,12 +129,12 @@ Ext.apply(Ext.form.field.VTypes, {
|
||||
DnsName: function(v) {
|
||||
return Proxmox.Utils.DnsName_match.test(v);
|
||||
},
|
||||
DnsNameText: gettext('This is not a valid DNS name'),
|
||||
DnsNameText: gettext('This is not a valid hostname'),
|
||||
|
||||
DnsNameOrWildcard: function(v) {
|
||||
return Proxmox.Utils.DnsName_or_Wildcard_match.test(v);
|
||||
},
|
||||
DnsNameOrWildcardText: gettext('This is not a valid DNS name'),
|
||||
DnsNameOrWildcardText: gettext('This is not a valid hostname'),
|
||||
|
||||
// email regex used by pve-common
|
||||
proxmoxMail: function(v) {
|
||||
|
Loading…
Reference in New Issue
Block a user