]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: Relax schema for domain name
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 Jan 2012 17:41:44 +0000 (18:41 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 26 Jan 2012 13:22:44 +0000 (14:22 +0100)
The domain schema enforced restrictions on the domain name string that
the code doesn't. This patch relaxes the check, leaving the restrictions
on the driver or hypervisor. The only invalid character is a newline.

docs/schemas/domaincommon.rng

index 4fa968dc430c8a8755bfdec0bdd9f7eeb27270fd..ecf34843a656835f092c677c30c465bf98327d39 100644 (file)
   </define>
   <define name="domainName">
     <data type="string">
-      <param name="pattern">[A-Za-z0-9_\.\+\-&amp;:/]+</param>
+      <param name="pattern">[^\n]+</param>
     </data>
   </define>
   <define name="diskSerial">