Fixed bug: Encoding was not set correctly when message was not multipart.
[squirrelmail.git] / functions / mime.php
index e2cac35923136d5577e887e58a80567cbaac6957..2ff5d656e4ba2178b79260f4e2996512f7307879 100644 (file)
@@ -11,7 +11,7 @@
    /** This is the first function called.  It decides if this is a multipart
        message or if it should be handled as a single entity
     **/
-   function decodeMime($body, $bound, $type0, $type1, &$entities) {
+   function decodeMime($body, $bound, $type0, $type1, $encoding, &$entities) {
       if ($type0 == "multipart") {
          $bound = trim($bound);
          $i = 0;