Move "cursor" position on \r\n sequence after single-dot in a line (#5838)

pull/5839/head
Aleksander Machniak 9 years ago
parent 8b61d6a2d1
commit e9716503a2

@ -1277,9 +1277,12 @@ class rcube_sieve_script
$text .= substr($str, $position, $pos - $position);
$position = $pos + 2;
if ($str[$position] == "\n"
|| ($str[$position] == "\r" && $str[$position + 1] == "\n")
) {
if ($str[$position] == "\n") {
break;
}
if ($str[$position] == "\r" && $str[$position + 1] == "\n") {
$position++;
break;
}

Loading…
Cancel
Save