From: Michael M Slusarz Date: Fri, 13 Nov 2009 17:57:36 +0000 (-0700) Subject: Sanity checking X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6f52fd964be8cb39f0c370dd5c3de612cb1eae87;p=horde.git Sanity checking --- diff --git a/framework/Mime/lib/Horde/Mime/Part.php b/framework/Mime/lib/Horde/Mime/Part.php index 4fe99a140..1ac91e278 100644 --- a/framework/Mime/lib/Horde/Mime/Part.php +++ b/framework/Mime/lib/Horde/Mime/Part.php @@ -485,7 +485,8 @@ class Horde_Mime_Part /* RFC 2045: Any entity with unrecognized encoding must be treated * as if it has a Content-Type of "application/octet-stream" * regardless of what the Content-Type field actually says. */ - if ($this->_transferEncoding == 'x-unknown') { + if (($this->_transferEncoding == 'x-unknown') || + (strpos($type, '/') === false)) { return; }