Skip to content
Snippets Groups Projects
Commit 74e21b38 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Avoid double download of scaled images

parent f68eb308
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ if (!$_GET['key']
// and the user has access to the parent ticket!!
if ($file->verifySignature($_GET['signature'], $_GET['expires'])) {
if (($s = @$_GET['s']) && strpos($file->getType(), 'image/') === 0)
$file->display($s);
return $file->display($s);
// Download the file..
$file->download(@$_GET['disposition'] ?: false, $_GET['expires']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment