fix(mail(js)): url-encode folder path to handle special characters (%)

Fixes #4989
pull/274/head
Francis Lachapelle 2020-04-13 17:28:11 -04:00
parent 979e1342c7
commit 52bb3baa8b
1 changed files with 2 additions and 2 deletions

View File

@ -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)