[pve-devel] [PATCH manager 2/2] fix #2190: allow multiple words separated by whitespaces in SMBIOS manufacturer string

Christian Ebner c.ebner at proxmox.com
Thu May 9 10:28:39 CEST 2019


On some occasions e.g. license checking, the manufacturer string in the
SMBIOS settings edit has to allow multiple words separated by whitespaces.
https://forum.proxmox.com/threads/proxmox-and-windows-rok-license-for-dell.53236/

Relies on the corresponding patch to qemu-server to pass parameter verification.

Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 www/manager6/qemu/Smbios1Edit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/qemu/Smbios1Edit.js b/www/manager6/qemu/Smbios1Edit.js
index fdb0d150..b482f90d 100644
--- a/www/manager6/qemu/Smbios1Edit.js
+++ b/www/manager6/qemu/Smbios1Edit.js
@@ -38,7 +38,7 @@ Ext.define('PVE.qemu.Smbios1InputPanel', {
 	    {
 		xtype: 'textfield',
 		fieldLabel: gettext('Manufacturer'),
-		regex: /^\S+$/,
+		regex: /^\S+(\s+\S+)*$/,
 		name: 'manufacturer'
 	    },
 	    {
-- 
2.11.0




More information about the pve-devel mailing list