{
// 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',
function post($v)
{
- if (empty($_REQUEST['_get'])) {
+ if (!empty($_REQUEST['_get'])) {
return $this->get($v);
}
$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;