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

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

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

Loading…
Cancel
Save