From 1809cf18798f22a385edd9178a7e893ce77243ab Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 9 Sep 2016 10:50:12 +0100 Subject: Strip carriage returns in the config parser. This prevents problems when configuration files have been edited on a Windows machine. --- src/configparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configparser.cpp') 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); } -- cgit v1.2.3