Fix possible defect in handling \r\n in scripts (#5685)

pull/5754/head
Aleksander Machniak 7 years ago
parent 85a750a068
commit 33586e4c87

@ -23,6 +23,7 @@ RELEASE 1.2.4
- Add rewrite rule to disable access to /vendor/bin folder in .htaccess (#5630)
- Fix bug where it was too easy accidentally move a folder when using the subscription checkbox (#5655)
- Managesieve: Fix parser issue with empty lines between comments (#5657)
- Managesieve: Fix possible defect in handling \r\n in scripts (#5685)
RELEASE 1.2.3
-------------

@ -1,4 +1,5 @@
- Fix handling of scripts with nested rules (#5540)
- Fix possible defect in handling \r\n in scripts (#5685)
* version 8.6 [2016-04-06]
-----------------------------------------------------------

@ -1215,7 +1215,7 @@ class rcube_sieve_script
if ($str[$position] == "\n") {
$position++;
}
else if ($str[$position] == "\r" && $str[$position] == "\n") {
else if ($str[$position] == "\r" && $str[$position + 1] == "\n") {
$position += 2;
}

Loading…
Cancel
Save