aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorin1tiate <radwoodward@vikings.grayson.edu>2021-03-28 23:11:22 -0500
committerin1tiate <radwoodward@vikings.grayson.edu>2021-03-28 23:11:22 -0500
commit4140a3339aad886be0287c17bd4eabe7597af8e9 (patch)
tree3a729b5c0b9dfd9f0702665f874c3b1e46d9131a /src
parent7583c574427484607f9266da7f3daa34f8d2590d (diff)
fix packets containing unencoded newlines being incorrectly split into multiple entries
Diffstat (limited to 'src')
-rw-r--r--src/demoserver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/demoserver.cpp b/src/demoserver.cpp
index 88dfdb4b..509a356a 100644
--- a/src/demoserver.cpp
+++ b/src/demoserver.cpp
@@ -233,8 +233,9 @@ void DemoServer::load_demo(QString filename)
demo_stream.setCodec("UTF-8");
QString line = demo_stream.readLine();
while (!line.isNull()) {
- if (!line.endsWith("%")) {
+ while (!line.endsWith("%")) {
line += "\n";
+ line += demo_stream.readLine();
}
demo_data.enqueue(line);
line = demo_stream.readLine();