diff options
author | Aleksander Machniak <alec@alec.pl> | 2017-07-03 13:50:37 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2017-07-03 13:52:26 +0300 |
commit | e31d87b3112ace1591c7e466ff25dc92cba7348c (patch) | |
tree | aed8265a743d091be7489be84a534fefe43ac92e /plugins | |
parent | 0abd84dc02039ba5ed5d26b70276feaef6432743 (diff) |
Move "cursor" position on \r\n sequence after single-dot in a line (#5838)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/managesieve/lib/Roundcube/rcube_sieve_script.php | 9 |
1 files changed, 6 insertions, 3 deletions
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; } |