Sanity checking
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 13 Nov 2009 17:57:36 +0000 (10:57 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 13 Nov 2009 17:57:36 +0000 (10:57 -0700)
framework/Mime/lib/Horde/Mime/Part.php

index 4fe99a1..1ac91e2 100644 (file)
@@ -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;
         }