Changeset 7655 for trunk/library/mime/mimePart.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/mime/mimePart.php
r6057 r7655 283 283 $encoded['body'] = ''; 284 284 285 for ($i = 0; $i < count($this->_subparts); $i++) {285 for ($i = 0; $i < count($this->_subparts); ++$i) { 286 286 $encoded['body'] .= '--' . $boundary . $eol; 287 287 $tmp = $this->_subparts[$i]->encode(); … … 393 393 394 394 if (count($this->_subparts)) { 395 for ($i = 0; $i < count($this->_subparts); $i++) {395 for ($i = 0; $i < count($this->_subparts); ++$i) { 396 396 fwrite($fh, $f_eol . '--' . $boundary . $eol); 397 397 $res = $this->_subparts[$i]->_encodePartToFile($fh); … … 581 581 $char = $line[$i]; 582 582 $dec = ord($char); 583 $i++;583 ++$i; 584 584 585 585 if (($dec == 32) && (!isset($line[$i]))) { … … 688 688 $value = ''; 689 689 } 690 $headCount++;690 ++$headCount; 691 691 } 692 692 … … 921 921 $strlen = strlen($string); 922 922 923 for ($q=$p=$i=0; $i < $strlen; $i++) {923 for ($q=$p=$i=0; $i < $strlen; ++$i) { 924 924 if ($string[$i] == "\"" 925 925 && (empty($string[$i-1]) || $string[$i-1] != "\\") … … 1103 1103 $prev = ''; 1104 1104 1105 for ($i=1; $i<=$length; $i++) {1105 for ($i=1; $i<=$length; ++$i) { 1106 1106 // See #17311 1107 1107 $chunk = mb_substr($str, $start, $i-$start, $charset); … … 1134 1134 $regexp = '/([\x22-\x29\x2C\x2E\x3A-\x40\x5B-\x60\x7B-\x7E\x80-\xFF])/'; 1135 1135 1136 for ($i=0; $i<=$length; $i++) {1136 for ($i=0; $i<=$length; ++$i) { 1137 1137 $char = mb_substr($str, $i, 1, $charset); 1138 1138 // RFC recommends underline (instead of =20) in place of the space
Note: See TracChangeset
for help on using the changeset viewer.