Fix parsing dot-staffed lines in multiline text (#5838)

release-1.2
Aleksander Machniak 8 years ago
parent 1fd9ad242e
commit 24edb8de3e

@ -4,6 +4,7 @@ CHANGELOG Roundcube Webmail
- Fix rewind(): stream does not support seeking (#5950) - Fix rewind(): stream does not support seeking (#5950)
- Fix bug where HTML messages could have been rendered empty on some systems (#5957) - Fix bug where HTML messages could have been rendered empty on some systems (#5957)
- Fix (again) bug where image data URIs in css style were treated as evil/remote in mail preview (#5580) - Fix (again) bug where image data URIs in css style were treated as evil/remote in mail preview (#5580)
- Managesieve: Fix parsing dot-staffed lines in multiline text (#5838, #5959)
RELEASE 1.2.6 RELEASE 1.2.6
------------- -------------

@ -1,3 +1,4 @@
- Fix parsing dot-staffed lines in multiline text (#5838)
- Fix handling of scripts with nested rules (#5540) - Fix handling of scripts with nested rules (#5540)
- Fix possible defect in handling \r\n in scripts (#5685) - Fix possible defect in handling \r\n in scripts (#5685)

@ -1231,11 +1231,13 @@ class rcube_sieve_script
$text .= substr($str, $position, $pos - $position); $text .= substr($str, $position, $pos - $position);
$position = $pos + 2; $position = $pos + 2;
if ($str[$pos] == "\n" if ($str[$position] == "\n"
|| ($str[$pos] == "\r" && $str[$pos + 1] == "\n") || ($str[$position] == "\r" && $str[$position + 1] == "\n")
) { ) {
break; break;
} }
$text .= "\n.";
} }
// remove dot-stuffing // remove dot-stuffing

@ -5,6 +5,8 @@ if header :contains "Subject" "vacation"
vacation :days 1 text: vacation :days 1 text:
# test # test
test test /* test */ test test /* test */
..
..test
test test
. .
; ;

Loading…
Cancel
Save