From 6f52fd964be8cb39f0c370dd5c3de612cb1eae87 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 13 Nov 2009 10:57:36 -0700 Subject: [PATCH] Sanity checking --- framework/Mime/lib/Horde/Mime/Part.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.11.0