summaryrefslogtreecommitdiff
path: root/modules/digibug/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-10-01 21:17:08 -0700
committerBharat Mediratta <bharat@menalto.com>2010-10-01 21:45:45 -0700
commitc0022dc3c35024ecfc101171bdccfc3b07227ebb (patch)
tree0907c000b35d7c2088d8e9669879f3eab4bdf96f /modules/digibug/controllers
parent86981c5afb980f744103af8b2e9a229e745d98fb (diff)
Fix a bug in the way we set the mime type for protected image renders.
Also whitelist the digibug controller so that it's accessible when the gallery is private, and don't expire old proxies right away since Digibug may request the full size multiple times for different preview operations. Fixes ticket #1410.
Diffstat (limited to 'modules/digibug/controllers')
-rw-r--r--modules/digibug/controllers/digibug.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/digibug/controllers/digibug.php b/modules/digibug/controllers/digibug.php
index 3c2bb115..88d1ace0 100644
--- a/modules/digibug/controllers/digibug.php
+++ b/modules/digibug/controllers/digibug.php
@@ -95,16 +95,11 @@ class Digibug_Controller extends Controller {
if (!TEST_MODE) {
// Dump out the image
- header("Content-Type: $proxy->item->mime_type");
+ header("Content-Type: {$proxy->item->mime_type}");
Kohana::close_buffers(false);
$fd = fopen($file, "rb");
fpassthru($fd);
fclose($fd);
-
- // If the request was for the image and not the thumb, then delete the proxy.
- if ($type == "full") {
- $proxy->delete();
- }
}
$this->_clean_expired();