Changeset 7655 for trunk/library/mime/mimeDecode.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/mime/mimeDecode.php
r6063 r7655 326 326 327 327 $parts = $this->_boundarySplit($body, $content_type['other']['boundary']); 328 for ($i = 0; $i < count($parts); $i++) {328 for ($i = 0; $i < count($parts); ++$i) { 329 329 list($part_header, $part_body) = $this->_splitBodyHeader($parts[$i]); 330 330 $part = $this->_decode($part_header, $part_body, $default_ctype); … … 386 386 $return[$prepend . $mime_number] = &$structure; 387 387 } 388 for ($i = 0; $i < count($structure->parts); $i++) {388 for ($i = 0; $i < count($structure->parts); ++$i) { 389 389 390 390 … … 521 521 $escaped = false; 522 522 if ($c == '\\') { 523 $i++;523 ++$i; 524 524 if ($i == $l-1) { // end of string. 525 525 break; … … 535 535 $val = ''; 536 536 $key = trim($key); 537 $i++;537 ++$i; 538 538 continue; 539 539 } … … 547 547 } 548 548 $key .= $c; 549 $i++;549 ++$i; 550 550 continue; 551 551 } … … 556 556 // not in quote yet. 557 557 if ((!strlen($val) || $lq !== false) && $c == ' ' || $c == "\t") { 558 $i++;558 ++$i; 559 559 continue; // skip leading spaces after '=' or after '"' 560 560 } … … 565 565 // but we will handle it as a merged part of the string.. 566 566 $val = !strlen(trim($val)) ? '' : trim($val); 567 $i++;567 ++$i; 568 568 continue; 569 569 } … … 593 593 $key = ''; 594 594 $lq = false; 595 $i++;595 ++$i; 596 596 continue; 597 597 } 598 598 599 599 $val .= $c; 600 $i++;600 ++$i; 601 601 continue; 602 602 } … … 608 608 $lq = $q; 609 609 $q = false; 610 $i++;610 ++$i; 611 611 continue; 612 612 } … … 614 614 // normal char inside of quoted string.. 615 615 $val.= $c; 616 $i++;616 ++$i; 617 617 } 618 618 … … 668 668 669 669 $len = count($tmp) -1; 670 for ($i = 1; $i < $len; $i++) {670 for ($i = 1; $i < $len; ++$i) { 671 671 if (strlen(trim($tmp[$i]))) { 672 672 $parts[] = $tmp[$i]; … … 792 792 preg_match_all("/begin ([0-7]{3}) (.+)\r?\n(.+)\r?\nend/Us", $input, $matches); 793 793 794 for ($j = 0; $j < count($matches[3]); $j++) {794 for ($j = 0; $j < count($matches[3]); ++$j) { 795 795 796 796 $str = $matches[3][$j]; … … 802 802 $strlen = count($str); 803 803 804 for ($i = 0; $i < $strlen; $i++) {804 for ($i = 0; $i < $strlen; ++$i) { 805 805 $pos = 1; 806 806 $d = 0; … … 943 943 // Multiple headers with this name 944 944 if (is_array($headers[$hdr_name])) { 945 for ($i = 0; $i < count($hdr_value); $i++) {945 for ($i = 0; $i < count($hdr_value); ++$i) { 946 946 $output .= Mail_mimeDecode::_getXML_helper($hdr_name, $hdr_value[$i], $indent); 947 947 } … … 954 954 955 955 if (!empty($input->parts)) { 956 for ($i = 0; $i < count($input->parts); $i++) {956 for ($i = 0; $i < count($input->parts); ++$i) { 957 957 $output .= $crlf . str_repeat($htab, $indent) . '<mimepart>' . $crlf . 958 958 Mail_mimeDecode::_getXML($input->parts[$i], $indent+1) .
Note: See TracChangeset
for help on using the changeset viewer.