From 52bb3baa8b3f5653ed6e40e1f370d341a34d7d98 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 13 Apr 2020 17:28:11 -0400 Subject: [PATCH] fix(mail(js)): url-encode folder path to handle special characters (%) Fixes #4989 --- UI/WebServerResources/js/Common/Resource.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/js/Common/Resource.service.js b/UI/WebServerResources/js/Common/Resource.service.js index a64c9d2b4..c6e4ada48 100644 --- a/UI/WebServerResources/js/Common/Resource.service.js +++ b/UI/WebServerResources/js/Common/Resource.service.js @@ -87,7 +87,7 @@ path = [this._path]; if (folderId) path.push(folderId.split('/')); if (action) path.push(action); - path = _.compact(_.flatten(path)).join('/'); + path = this._window.encodeURI(_.compact(_.flatten(path)).join('/')); this._http({ method: 'GET', @@ -191,7 +191,7 @@ path = [this._path]; if (id) path.push(id); if (action) path.push(action); - path = _.compact(_.flatten(path)).join('/'); + path = this._window.encodeURI(_.compact(_.flatten(path)).join('/')); this._http .post(path, data)