Skip to content

Commit

Permalink
We explicitly mark signature parts as not attachments.
Browse files Browse the repository at this point in the history
Move the disposition check after the check for this.
  • Loading branch information
mrubinsk committed Aug 7, 2015
1 parent 543d4db commit 0faeca0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/ActiveSync/lib/Horde/ActiveSync/Mime.php
Expand Up @@ -126,10 +126,6 @@ public function hasAttachments()
*/
public function isAttachment($id, $mime_type)
{
if ($this->_base->getPart($id)->getDisposition() == 'attachment') {
return true;
}

switch ($mime_type) {
case 'text/plain':
if (!($this->_base->findBody('plain') == $id)) {
Expand All @@ -146,6 +142,10 @@ public function isAttachment($id, $mime_type)
return false;
}

if ($this->_base->getPart($id)->getDisposition() == 'attachment') {
return true;
}

list($ptype,) = explode('/', $mime_type, 2);

switch ($ptype) {
Expand Down

0 comments on commit 0faeca0

Please sign in to comment.