fix bug #135: allow single letter 'dns-name', allow to start names with numbers

This commit is contained in:
Dietmar Maurer 2012-04-02 12:13:59 +02:00
parent bbb3512854
commit 0d201dfec8
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
pve-manager (2.0-55) unstable; urgency=low
* fix bug #135: allow single letter 'dns-name', allow to start names
with numbers
-- Proxmox Support Team <support@proxmox.com> Mon, 02 Apr 2012 12:13:33 +0200
pve-manager (2.0-54) unstable; urgency=low
* use /etc/subscription to store subscription key

View File

@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=pve-manager
PACKAGERELEASE=54
PACKAGERELEASE=55
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5

View File

@ -65,7 +65,7 @@ Ext.apply(Ext.form.field.VTypes, {
HttpProxyText: gettext('Example') + ": http://username:password&#64;host:port/",
DnsName: function(v) {
return (/^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$/).test(v);
return (/^(([a-zA-Z0-9]([a-zA-Z0-9\-]*[a-zA-Z0-9])?)\.)*([A-Za-z0-9]([A-Za-z0-9\-]*[A-Za-z0-9])?)$/).test(v);
},
DnsNameText: gettext('This is not a valid DNS name')
});