Commit 5739a114 authored by Dietmar Maurer's avatar Dietmar Maurer

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

parent 3c9047f6
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 pve-manager (2.0-54) unstable; urgency=low
* use /etc/subscription to store subscription key * use /etc/subscription to store subscription key
......
...@@ -2,7 +2,7 @@ RELEASE=2.0 ...@@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0 VERSION=2.0
PACKAGE=pve-manager PACKAGE=pve-manager
PACKAGERELEASE=54 PACKAGERELEASE=55
BINDIR=${DESTDIR}/usr/bin BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5 PERLLIBDIR=${DESTDIR}/usr/share/perl5
......
...@@ -65,7 +65,7 @@ Ext.apply(Ext.form.field.VTypes, { ...@@ -65,7 +65,7 @@ Ext.apply(Ext.form.field.VTypes, {
HttpProxyText: gettext('Example') + ": http://username:password&#64;host:port/", HttpProxyText: gettext('Example') + ": http://username:password&#64;host:port/",
DnsName: function(v) { 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') DnsNameText: gettext('This is not a valid DNS name')
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment