X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Images.php;h=884d88ab5cc73b75418b673c3dc5d8d905e0ad2f;hb=dff7116c31985c523f927df3e8e7cf50670ef428;hp=2ce354b243fe846840d4839f40c0e39a54dc2e2d;hpb=bad8403468109e77a49f30146b04ae8e0e6398e4;p=Pman.Core diff --git a/Images.php b/Images.php index 2ce354b2..884d88ab 100644 --- a/Images.php +++ b/Images.php @@ -42,7 +42,9 @@ class Pman_Core_Images extends Pman { // tables that do not need authentication checks before serving. - var $public_image_tables = array(); + var $public_image_tables = array( + 'crm_mailing_list_message' // we know these are ok... + ); var $sizes = array( '100', @@ -227,7 +229,7 @@ class Pman_Core_Images extends Pman function post($v) { - if (empty($_REQUEST['_get'])) { + if (!empty($_REQUEST['_get'])) { return $this->get($v); } @@ -295,6 +297,10 @@ class Pman_Core_Images extends Pman $this->as_mimetype = $img->mimetype; } if (!$this->thumb) { + if ($x->mimetype == $this->as_mimetype) { + $x->serveOnly($this->method); + exit; + } $x->convert( $this->as_mimetype); $x->serve($this->method); exit;