No more XSS
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
3ab53d000f
commit
747990b03a
|
@ -110,7 +110,7 @@ class ImageExportPlugin extends ServerPlugin {
|
|||
try {
|
||||
$file = $this->cache->get($addressbook->getResourceId(), $node->getName(), $size, $node);
|
||||
$response->setHeader('Content-Type', $file->getMimeType());
|
||||
$response->setHeader('Content-Disposition', 'inline');
|
||||
$response->setHeader('Content-Disposition', 'attachment');
|
||||
$response->setStatus(200);
|
||||
|
||||
$response->setBody($file->getContent());
|
||||
|
|
Loading…
Reference in New Issue