Skip to content

Commit

Permalink
Move "cursor" position on \r\n sequence after single-dot in a line (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Oct 12, 2017
1 parent 24edb8d commit cb3f44b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/managesieve/lib/Roundcube/rcube_sieve_script.php
Original file line number Diff line number Diff line change
Expand Up @@ -1231,9 +1231,12 @@ static function tokenize($str, $num = 0, &$position = 0)
$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;
}

Expand Down

0 comments on commit cb3f44b

Please sign in to comment.