summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-09-09 10:50:12 +0100
committerPeter Powell <petpow@saberuk.com>2016-09-20 22:23:07 +0100
commit1809cf18798f22a385edd9178a7e893ce77243ab (patch)
tree399ae67bbde9bd54257bc5f1e9a99b41eeaf06bc
parent7f2a793d189844425e141929e08bd903a6d8c8d6 (diff)
Strip carriage returns in the config parser.
This prevents problems when configuration files have been edited on a Windows machine.
-rw-r--r--src/configparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index 3be1ac9c5..8bf9aaec2 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -173,7 +173,7 @@ struct Parser
}
else if (ch == '"')
break;
- else
+ else if (ch != '\r')
value.push_back(ch);
}