diff options
author | albert-github <albert.tests@gmail.com> | 2016-01-31 13:17:57 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2016-01-31 13:17:57 (GMT) |
commit | ce7a983c2849e4c8fa72189a896e594a8497dd4c (patch) | |
tree | 0abb18c43a2d05fde7477b50ada7c217cc781865 /src/util.cpp | |
parent | 37852281fca7e8080bd62dc702f2c6b2017e699e (diff) | |
download | Doxygen-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.
Diffstat (limited to 'src/util.cpp')
-rwxr-xr-x | src/util.cpp | 6 |
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; } } |