From 8a97d9f94d23feca714fc7cba1f4ed427e663a7f Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Sun, 18 Apr 2010 02:54:32 +0000 Subject: [PATCH] Strip whitespace characters from .ign patterns Fixes bug #15902. --- changelog | 1 + src/addon_management.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog b/changelog index bd3f0e6375e..bc140515db6 100644 --- a/changelog +++ b/changelog @@ -55,6 +55,7 @@ Version 1.9.0-svn: * Fixed the ping timeout not waiting for the default ping interval when ping timeout is not set to 0 * Fixed a bug in scoring of AI recall list. Patch by billynux. + * Strip whitespace characters from .ign patterns (bug #15902) * Terrain animation related * animated terrain animations are not synchronized anymore * reworked macros to handle animations diff --git a/src/addon_management.cpp b/src/addon_management.cpp index f6ccb28a92e..5d8c350e1be 100644 --- a/src/addon_management.cpp +++ b/src/addon_management.cpp @@ -216,6 +216,7 @@ static std::pair, std::vector > read_ignor std::istream *stream = istream_file(ign_file); std::string line; while (std::getline(*stream, line)) { + utils::strip(line); const size_t l = line.size(); if (line[l - 1] == '/') { // directory; we strip the last / patterns.second.push_back(line.substr(0, l - 1));