Commit 916f2dfb authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix parsing error when we have < or > in comment

(cherry picked from commit f046f24e)
parent 125d96a8
script1.siv failed as parser doesn't like "<" or ">" in comment => I workaround by changed it as double quote
......@@ -385,6 +385,10 @@ bool Lexer::Impl::parseHashComment(QString &result, bool reallySave)
if (reallySave) {
result += QString::fromUtf8(commentStart, commentLength);
// In comment < or > breaks parsing => convert them to double quote
// See src/ksieveui/scriptsparsing/tests/failed/script1.siv
result.replace(QLatin1Char('<'), QLatin1Char('"'));
result.replace(QLatin1Char('>'), QLatin1Char('"'));
return true;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment