Encode download file name with encodeURI

This commit is contained in:
Zaid Abdulla committed 2017-06-01 16:53:09 -07:00
1 parent 3ebc249ffa
commit 330c6fc720
1 file changed
+1 -1
+1 -1
View File
@@ -542,7 +542,7 @@ sendAcsRequest = (sessionContext, id, acsRequest) ->
acsRequest.url = if FS_SSL then 'https://' else 'http://'
acsRequest.url += FS_HOSTNAME
acsRequest.url += ":#{FS_PORT}" if FS_PORT != 80
acsRequest.url += "/#{encodeURIComponent(acsRequest.fileName)}"
acsRequest.url += "/#{encodeURI(acsRequest.fileName)}"
if not acsRequest.fileSize?
return localCache.getFiles((err, hash, files) ->