[pve-devel] applied: [PATCH manager] gui: allow whitespace in mp paths
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Aug 22 11:17:01 CEST 2018
On 8/22/18 10:17 AM, Dominik Csapak wrote:
> 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;
>
applied
More information about the pve-devel
mailing list