mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Correctly handle quote characters in template name when downloading
This commit is contained in:
parent
aec80fb1db
commit
923fbfc574
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ module.exports = TemplatesWebController =
|
||||||
disposition = "inline"
|
disposition = "inline"
|
||||||
else
|
else
|
||||||
disposition = "attachment"
|
disposition = "attachment"
|
||||||
res.header({"content-disposition": "#{disposition}; filename=#{name}.#{req.params.file_type};"})
|
res.header({"content-disposition": "#{disposition}; filename=\"#{name.replace("\"", "-")}.#{req.params.file_type}\""})
|
||||||
|
|
||||||
logger.log url:url, template_name: name, disposition: disposition, "proxying request to templates api"
|
logger.log url:url, template_name: name, disposition: disposition, "proxying request to templates api"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue