[pve-devel] [PATCH manager] gui: allow whitespace in mp paths

Dominik Csapak d.csapak at proxmox.com
Wed Aug 22 10:17:17 CEST 2018


we do all necessary checks in the backend, and there we allow
whitespace in mp paths, so there is no need to restrict it in
the gui to non-whitespace characters

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/Parser.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/Parser.js b/www/manager6/Parser.js
index f63ccdab..b5fb5a4e 100644
--- a/www/manager6/Parser.js
+++ b/www/manager6/Parser.js
@@ -420,7 +420,7 @@ Ext.define('PVE.Parser', { statics: {
 	    if (!p || p.match(/^\s*$/)) {
 		return; // continue
 	    }
-	    var match_res = p.match(/^([a-z_]+)=(\S+)$/);
+	    var match_res = p.match(/^([a-z_]+)=(.+)$/);
 	    if (!match_res) {
 		if (!p.match(/\=/)) {
 		    res.file = p;
-- 
2.11.0





More information about the pve-devel mailing list