Encode URI component
This commit is contained in:
parent
ebef455fe3
commit
5f115c24c7
@ -156,7 +156,7 @@ AppStore.prototype.getManifest = function (appId, version) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
AppStore.prototype.restore = function (boxId, backupId) {
|
AppStore.prototype.restore = function (boxId, backupId) {
|
||||||
var res = request.post(this._origin + '/api/v1/cloudrons/' + boxId + '/restore/' + backupId).query({ accessToken: this._credentials.accessToken }).end();
|
var res = request.post(this._origin + '/api/v1/cloudrons/' + boxId + '/restore/' + encodeURIComponent(backupId)).query({ accessToken: this._credentials.accessToken }).end();
|
||||||
common.verifyResponse2xx(res, 'Could not restore cloudron');
|
common.verifyResponse2xx(res, 'Could not restore cloudron');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user