Fixed a minor MIME bug
[squirrelmail.git] / functions / mime.php
index cc00e3c771f94d582e139a6055ce9d77b74cd053..6bd52f036129422d86b51c937c5365afe9a0e800 100644 (file)
@@ -11,6 +11,7 @@
    function decodeMime($body, $bound, $type0, $type1, &$entities) {
       if ($type0 == "multipart") {
          $bound = trim($bound);
+         $i = 0;
          while (($i < count($body)) && (substr($body[$i], 0, strlen("--$bound--")) != "--$bound--")) {
             if (trim($body[$i]) == "--$bound") {
                $j = $i+1;