summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorThijs Kinkhorst <thijs@uvt.nl>2013-03-08 13:41:18 +0100
committerThijs Kinkhorst <thijs@uvt.nl>2013-03-08 15:28:36 +0100
commit8cfba1bb2a5bef037316107893c4bbac801c4883 (patch)
tree913a16e84a56a6a42595b3ba84c541416bffdce9 /program
parent32da69983021005567a4d8f56a2658ac2645780c (diff)
Test content_id with isset instead of a true/false value.
This broke html email in which one image had Content-ID: <0>, which is a valid value but evaulates to false in this test.
Diffstat (limited to 'program')
-rw-r--r--program/lib/Roundcube/rcube_message.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php
index dc7080746..60161a419 100644
--- a/program/lib/Roundcube/rcube_message.php
+++ b/program/lib/Roundcube/rcube_message.php
@@ -616,7 +616,7 @@ class rcube_message
foreach ($this->inline_parts as $inline_object) {
$part_url = $this->get_part_url($inline_object->mime_id, true);
- if ($inline_object->content_id)
+ if (isset($inline_object->content_id))
$a_replaces['cid:'.$inline_object->content_id] = $part_url;
if ($inline_object->content_location) {
$a_replaces[$inline_object->content_location] = $part_url;