mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-11 16:28:51 +00:00
fix(mail(js)): url-encode folder path to handle special characters (%)
Fixes #4989
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user