소스 검색

fix for the bodystructure parser

stekkel 23 년 전
부모
커밋
e4518532d4
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      class/mime.class.php

+ 1 - 2
class/mime.class.php

@@ -837,7 +837,6 @@ class message {
 
 
                         $msg->type0 = $arg_a[0];
                         $msg->type0 = $arg_a[0];
                         $msg->type1 = $arg_a[1];
                         $msg->type1 = $arg_a[1];
-
                         $arr = $arg_a[2];
                         $arr = $arg_a[2];
                         if (is_array($arr)) {
                         if (is_array($arr)) {
                             $hdr->parameters = $arg_a[2];
                             $hdr->parameters = $arg_a[2];
@@ -871,6 +870,7 @@ class message {
                         $hdr->disposition = (isset($arg_a[2]) ? $arg_a[2] : $hdr->disposition);
                         $hdr->disposition = (isset($arg_a[2]) ? $arg_a[2] : $hdr->disposition);
                         $hdr->language = (isset($arg_a[3]) ? $arg_a[3] : $hdr->language);
                         $hdr->language = (isset($arg_a[3]) ? $arg_a[3] : $hdr->language);
                         $msg->header = $hdr;
                         $msg->header = $hdr;
+			++$i;
                     }
                     }
                     return (array($msg, $i));
                     return (array($msg, $i));
                 default: break;
                 default: break;
@@ -905,7 +905,6 @@ class message {
                 }
                 }
             }
             }
         }
         }
-
         return array($properties, $i);
         return array($properties, $i);
     }
     }