Aleksander Machniak
2015-12-03 b6b92c0dddf5247efc12656bbc351aab3cdc31d4
Optionally throw 404 error when contact photo wasn't found
1 files modified
3 ■■■■■ changed files
program/steps/addressbook/photo.inc 3 ●●●●● patch | view | raw | blame | history
program/steps/addressbook/photo.inc
@@ -89,6 +89,9 @@
    header('Content-Type: ' . rcube_mime::image_content_type($data));
    echo $data;
}
else if (!empty($_GET['_error'])) {
    header('HTTP/1.0 404 Photo not found');
}
else {
    header('Content-Type: image/gif');
    echo base64_decode(rcmail_output::BLANK_GIF);