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

release-1.2
Aleksander Machniak 7 years ago
parent 24edb8de3e
commit cb3f44b1b9

@ -1231,9 +1231,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