fixes mm-1245 filenames are now url escaped

Этот коммит содержится в:
JoramWilander
2015-06-15 11:51:10 -04:00
родитель b7a821c341
Коммит adceb8c929
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -114,7 +114,7 @@ func uploadFile(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
fileUrl := c.TeamUrl + "/api/v1/files/get/" + channelId + "/" + c.Session.UserId + "/" + uid + "/" + files[i].Filename
fileUrl := c.TeamUrl + "/api/v1/files/get/" + channelId + "/" + c.Session.UserId + "/" + uid + "/" + url.QueryEscape(files[i].Filename)
resStruct.Filenames = append(resStruct.Filenames, fileUrl)
}