diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-01-12 05:44:28 -0500 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-01-12 05:44:28 -0500 |
commit | c6efcf5e6d11a0f236daff3aa3bd6532c77726d3 (patch) | |
tree | 7135cf595e0489d2640ac72d48a53b6ac408078d /program/steps/mail/get.inc | |
parent | 49b1c16c464586d826e974cd2223090923207516 (diff) |
Fix blocked.gif image usage with assets_dir set
Diffstat (limited to 'program/steps/mail/get.inc')
-rw-r--r-- | program/steps/mail/get.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index 775349d1c..150737a83 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -183,10 +183,12 @@ else if (strlen($part_id)) { // send blocked.gif for expected images if (empty($_REQUEST['_mimewarning']) && strpos($mimetype, 'image/') === 0) { // Do not cache. Failure might be the result of a misconfiguration, thus real content should be returned once fixed. + $content = $RCMAIL->get_resource_content('blocked.gif'); $OUTPUT->nocacheing_headers(); header("Content-Type: image/gif"); header("Content-Transfer-Encoding: binary"); - readfile(INSTALL_PATH . 'program/resources/blocked.gif'); + header("Content-Length: " . strlen($content)); + echo $content; } else { // html warning with a button to load the file anyway $OUTPUT = new rcmail_html_page(); |