From: Michael M Slusarz Date: Thu, 20 Nov 2008 20:49:59 +0000 (-0700) Subject: Fix bitmask check. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=97994a71a797840717fd7f76eb91dc76b4d829f4;p=horde.git Fix bitmask check. --- diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 77d7272ca..0fc1fa4d1 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -549,7 +549,7 @@ class IMP_Contents } /* Strip the Attachment? */ - if ($mask && self::SUMMARY_STRIP_LINK && + if (($mask & self::SUMMARY_STRIP_LINK) && !$this->isParent($id, 'message/rfc822')) { $url = Util::removeParameter(Horde::selfUrl(true), array('actionID', 'imapid', 'index')); $url = Util::addParameter($url, array('actionID' => 'strip_attachment', 'imapid' => $id, 'index' => $this->_index, 'message_token' => IMP::getRequestToken('imp.impcontents')));