summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-01-31 13:17:57 (GMT)
committeralbert-github <albert.tests@gmail.com>2016-01-31 13:17:57 (GMT)
commitce7a983c2849e4c8fa72189a896e594a8497dd4c (patch)
tree0abb18c43a2d05fde7477b50ada7c217cc781865
parent37852281fca7e8080bd62dc702f2c6b2017e699e (diff)
downloadDoxygen-ce7a983c2849e4c8fa72189a896e594a8497dd4c.zip
Doxygen-ce7a983c2849e4c8fa72189a896e594a8497dd4c.tar.gz
Doxygen-ce7a983c2849e4c8fa72189a896e594a8497dd4c.tar.bz2
Bug 504305 - FILTER_PATTERNS won't take command with arguments
INPUT_FILTER is a string so multiple values are read till the end of the line and quotes are automatically removed. FILTER_PATTERNS and FILTER_SOURCE_PATTERNS are list of strings so with multiple arguments for one extension quotes are mandatory, but they were not removed.
-rwxr-xr-xsrc/util.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index fdd39f9..25ab4e1 100755
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -2366,6 +2366,12 @@ QCString getFileFilter(const char* name,bool isSourceCode)
}
else
{
+ /* remove surrounding double quotes */
+ if ((filterName.right(1) == "\"") && (filterName.left(1) == "\""))
+ {
+ filterName.remove(filterName.length() - 1, 1);
+ filterName.remove(0, 1);
+ }
return filterName;
}
}