aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorvincent-richard <[email protected]>2020-04-06 16:12:41 +0000
committervincent-richard <[email protected]>2020-04-06 16:12:41 +0000
commit6d90a15bc53f23dfd99bf2d98670134e2c9d3579 (patch)
treefcbc06f0f43794e3427b0a6a80001dfc8c3a0436 /src
parentAdded support for pipelined and out-of-order replies. (diff)
downloadvmime-6d90a15bc53f23dfd99bf2d98670134e2c9d3579.tar.gz
vmime-6d90a15bc53f23dfd99bf2d98670134e2c9d3579.zip
Map '*' to '\*' in non-strict mode.
Diffstat (limited to 'src')
-rw-r--r--src/vmime/net/imap/IMAPParser.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vmime/net/imap/IMAPParser.hpp b/src/vmime/net/imap/IMAPParser.hpp
index 2aeefb53..281fcb67 100644
--- a/src/vmime/net/imap/IMAPParser.hpp
+++ b/src/vmime/net/imap/IMAPParser.hpp
@@ -1645,8 +1645,12 @@ public:
} else {
- type = KEYWORD_OR_EXTENSION;
- VIMAP_PARSER_GET(atom, flag_keyword);
+ if (!parser.isStrict() && VIMAP_PARSER_TRY_CHECK(one_char <'*'> )) {
+ type = STAR; // map "*" to "\*"
+ } else {
+ type = KEYWORD_OR_EXTENSION;
+ VIMAP_PARSER_GET(atom, flag_keyword);
+ }
}
*currentPos = pos;