From d9c622ae042b20567a167fbcfd91303049795bf6 Mon Sep 17 00:00:00 2001 From: crs Date: Tue, 15 Oct 2002 22:17:41 +0000 Subject: [PATCH] CConfig now accepts and discards \r at the end of a line. This allows the unix server to read configuration files created on microsoft windows platforms. --- lib/server/CConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server/CConfig.cpp b/lib/server/CConfig.cpp index c068790c..7e706cf4 100644 --- a/lib/server/CConfig.cpp +++ b/lib/server/CConfig.cpp @@ -424,7 +424,7 @@ CConfig::readLine(std::istream& s, CString& line) if (i != CString::npos) { line.erase(i); } - i = line.find_last_not_of(" \t"); + i = line.find_last_not_of(" \r\t"); if (i != CString::npos) { line.erase(i + 1); }