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 Jul 3, 2017
1 parent 0abd84d commit e31d87b
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 @@ -1277,9 +1277,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 e31d87b

Please sign in to comment.