@@ 655-672 (lines=18) @@ | ||
652 | case "\r": |
|
653 | $this->_bodyCanonLastChar = "\r"; |
|
654 | break; |
|
655 | case "\n": |
|
656 | if ($this->_bodyCanonLastChar === "\r") { |
|
657 | if ($method) { |
|
658 | $this->_bodyCanonSpace = false; |
|
659 | } |
|
660 | ||
661 | if ($this->_bodyCanonLine === '') { |
|
662 | ++$this->_bodyCanonEmptyCounter; |
|
663 | } else { |
|
664 | $this->_bodyCanonLine = ''; |
|
665 | $canon .= "\r\n"; |
|
666 | } |
|
667 | ||
668 | } else { |
|
669 | // Wooops Error |
|
670 | // todo handle it but should never happen |
|
671 | } |
|
672 | break; |
|
673 | case ' ': |
|
674 | case "\t": |
|
675 | if ($method) { |
@@ 478-493 (lines=16) @@ | ||
475 | case "\r": |
|
476 | $this->_bodyCanonLastChar = "\r"; |
|
477 | break; |
|
478 | case "\n": |
|
479 | if ($this->_bodyCanonLastChar === "\r") { |
|
480 | if ($nofws) { |
|
481 | $this->_bodyCanonSpace = false; |
|
482 | } |
|
483 | if ($this->_bodyCanonLine === '') { |
|
484 | ++$this->_bodyCanonEmptyCounter; |
|
485 | } else { |
|
486 | $this->_bodyCanonLine = ''; |
|
487 | $canon .= "\r\n"; |
|
488 | } |
|
489 | } else { |
|
490 | // Wooops Error |
|
491 | throw new Swift_SwiftException('Invalid new line sequence in mail found \n without preceding \r'); |
|
492 | } |
|
493 | break; |
|
494 | case ' ': |
|
495 | case "\t": |
|
496 | case "\x09": //HTAB |