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.eb...@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

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to