Use encodeURIComponent for encoding query params

This commit is contained in:
Girish Ramakrishnan
2019-03-04 12:59:41 -08:00
parent b0684ce29c
commit 6f32a0d6de
2 changed files with 2 additions and 2 deletions

View File

@@ -1599,7 +1599,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
headers: { 'Content-Type': undefined }
};
head('/api/v1/apps/' + appId + '/download?file=' + filePath, config, function (error, data, status) {
head('/api/v1/apps/' + appId + '/download?file=' + encodeURIComponent(filePath), config, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));