diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php b/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php index 774be462341..8a916be57c4 100644 --- a/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php +++ b/plugins/managesieve/lib/Roundcube/rcube_sieve_script.php @@ -1277,9 +1277,10 @@ static function tokenize($str, $num = 0, &$position = 0) $text .= substr($str, $position, $pos - $position); $position = $pos + 2; - if ($str[$pos] == "\n" - || ($str[$pos] == "\r" && $str[$pos + 1] == "\n") - ) { + if ($str[$position] == "\n") { + break; + } else if ($str[$position] == "\r" && $str[$position + 1] == "\n"){ + $position++; break; } }