2018-11-14 07:24:38 +01:00
|
|
|
From 5fbba6b0db3e13bb42a6208c408497469e501a26 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: Mon, 17 Sep 2018 22:05:03 +0200
|
|
|
|
Subject: [PATCH 5/5] vcc.y - do not ignore field separator in QUOTED-PRINTABLE
|
|
|
|
mode
|
|
|
|
References: https://github.com/libical/libical/pull/354
|
|
|
|
|
|
|
|
"N;ENCODING=QUOTED-PRINTABLE:=C3=A4=C3=B6;=C3=BC=C3=9F\n"
|
|
|
|
|
|
|
|
was parsed as a single field, while in fact, it is two.
|
|
|
|
|
|
|
|
References: #353
|
|
|
|
---
|
|
|
|
src/libicalvcal/vcc.c | 5 +++--
|
|
|
|
src/libicalvcal/vcc.y | 5 +++--
|
|
|
|
2 files changed, 6 insertions(+), 4 deletions(-)
|
|
|
|
|
2023-12-29 09:54:27 +01:00
|
|
|
Index: libical-3.0.17/src/libicalvcal/vcc.c
|
|
|
|
===================================================================
|
|
|
|
--- libical-3.0.17.orig/src/libicalvcal/vcc.c
|
|
|
|
+++ libical-3.0.17/src/libicalvcal/vcc.c
|
|
|
|
@@ -1026,8 +1026,9 @@ static char* lexGetQuotedPrintable(void)
|
2018-11-14 07:24:38 +01:00
|
|
|
lexAppendc(c | d);
|
|
|
|
break;
|
|
|
|
} /* '=' */
|
|
|
|
- case '\n': {
|
|
|
|
- lexPushLookaheadc('\n');
|
|
|
|
+ case '\n':
|
|
|
|
+ case ';': {
|
|
|
|
+ lexPushLookaheadc(cur);
|
|
|
|
goto EndString;
|
|
|
|
}
|
|
|
|
case (char)EOF:
|
2023-12-29 09:54:27 +01:00
|
|
|
Index: libical-3.0.17/src/libicalvcal/vcc.y
|
|
|
|
===================================================================
|
|
|
|
--- libical-3.0.17.orig/src/libicalvcal/vcc.y
|
|
|
|
+++ libical-3.0.17/src/libicalvcal/vcc.y
|
|
|
|
@@ -990,8 +990,9 @@ static char* lexGetQuotedPrintable()
|
2018-11-14 07:24:38 +01:00
|
|
|
lexAppendc(c | d);
|
|
|
|
break;
|
|
|
|
} /* '=' */
|
|
|
|
- case '\n': {
|
|
|
|
- lexPushLookaheadc('\n');
|
|
|
|
+ case '\n':
|
|
|
|
+ case ';': {
|
|
|
|
+ lexPushLookaheadc(cur);
|
|
|
|
goto EndString;
|
|
|
|
}
|
|
|
|
case (char)EOF:
|