From 8d35024bf4d2298c22298493f9a8398f83366ccc Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Sat, 25 Feb 2012 11:40:21 +0100 Subject: Fixed handling of ';' inside qoute. --- src/msgparser.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/msgparser.cc b/src/msgparser.cc index 79172e9..c05a9ee 100644 --- a/src/msgparser.cc +++ b/src/msgparser.cc @@ -104,7 +104,7 @@ MsgVector parse_msg(std::string data) { if(inside_quote) { printf("Appending %c\n", ch); token += ch; - continue; + break; } if(token.empty()) continue; // skip multiple white spaces and pre white space printf("Adding token %s\n", token.c_str()); @@ -112,6 +112,11 @@ MsgVector parse_msg(std::string data) { token.clear(); break; case ';': + if(inside_quote) { + printf("Appending %c\n", ch); + token += ch; + break; + } printf("Adding msg...\n"); if(!token.empty()) { tokens.push_back(token); -- cgit v1.2.3