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

pull/5890/head
Aleksander Machniak 7 years ago
parent 0abd84dc02
commit e31d87b311

@ -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