From 74e21b38892450db6d7639f6141b5e302562f696 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Tue, 6 Jan 2015 15:22:15 -0600
Subject: [PATCH] oops: Avoid double download of scaled images

---
 file.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/file.php b/file.php
index e5dd71ed8..22cc8094b 100644
--- a/file.php
+++ b/file.php
@@ -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']);
-- 
GitLab