mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 03:58:26 +00:00
fix bug #135: allow single letter 'dns-name', allow to start names with numbers
This commit is contained in:
parent
bbb3512854
commit
0d201dfec8
7
debian/changelog.Debian
vendored
7
debian/changelog.Debian
vendored
@ -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
|
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
|
|||||||
|
|
||||||
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, {
|
|||||||
HttpProxyText: gettext('Example') + ": http://username:password@host:port/",
|
HttpProxyText: gettext('Example') + ": http://username:password@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')
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user