Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2017-07-03 13:50:37 +0300
committerAleksander Machniak <alec@alec.pl>2017-07-03 13:52:26 +0300
commite31d87b3112ace1591c7e466ff25dc92cba7348c (patch)
treeaed8265a743d091be7489be84a534fefe43ac92e /plugins
parent0abd84dc02039ba5ed5d26b70276feaef6432743 (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.php9
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;
}