From 3bcc360c81a3da1faf52c5f58d9404caddd9759e Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 27 Jan 2017 20:43:00 -0500 Subject: [PATCH] CommandParser: skip newline character --- src/core/CommandParser.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/CommandParser.cc b/src/core/CommandParser.cc index 618b9c3..b5a6e69 100644 --- a/src/core/CommandParser.cc +++ b/src/core/CommandParser.cc @@ -27,7 +27,11 @@ bool CommandParser::parse(const EncodedString & command) while (it != end) { uint32_t cp = *it; - if ((quote != 0u) && (cp == quote)) + if (cp == '\n') + { + /* Skip newline character */ + } + else if ((quote != 0u) && (cp == quote)) { quote = 0u; }