diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php b/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php index 73b888453..228213bee 100644 --- a/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php +++ b/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php @@ -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; }