diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2012-02-25 11:40:21 +0100 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2012-02-25 11:40:21 +0100 |
commit | 8d35024bf4d2298c22298493f9a8398f83366ccc (patch) | |
tree | ebe1347c32dbd7f098a654202e46a19b9696175c | |
parent | 29aa15f713f9d0baded0ebdc3cb3f7be46df0ccb (diff) |
Fixed handling of ';' inside qoute.
-rw-r--r-- | src/msgparser.cc | 7 |
1 files changed, 6 insertions, 1 deletions
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); |