diff options
| author | Martin Smith <martin.smith@nokia.com> | 2012-07-12 10:15:55 +0200 |
|---|---|---|
| committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-13 01:51:37 +0200 |
| commit | 8ca17ed943424f277d53cadd2e884834fac16b1f (patch) | |
| tree | 339b2a92486e0ca2a4e22bf2bff42d2b736303ca /src/tools/qdoc/config.cpp | |
| parent | 770e1d30a220ec0c03b08bc1db797543f32d2b5a (diff) | |
qdoc: Clean path names before using them
The excludedirs variable doesn't work correctly when its values have
'../' in them. The solution is to use QDir::cleanPath() on each path
name before using it.
Task Nr: QTBUG-26492
Change-Id: I2db74e79cf096c1c75ab5b10877320360c016fc7
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/tools/qdoc/config.cpp')
| -rw-r--r-- | src/tools/qdoc/config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/qdoc/config.cpp b/src/tools/qdoc/config.cpp index 7ab65703de6..e1a028315f0 100644 --- a/src/tools/qdoc/config.cpp +++ b/src/tools/qdoc/config.cpp @@ -219,7 +219,6 @@ void Config::unload(const QString& fileName) } qDebug() << "fileName:" << fileName; } - /*! Joins all the strings in \a values into a single string with the individual \a values separated by ' '. Then it inserts the result @@ -931,11 +930,12 @@ void Config::load(Location location, const QString& fileName) } } -QStringList Config::getFilesHere(const QString& dir, +QStringList Config::getFilesHere(const QString& uncleanDir, const QString& nameFilter, const QSet<QString> &excludedDirs, const QSet<QString> &excludedFiles) { + QString dir = QDir::cleanPath(uncleanDir); QStringList result; if (excludedDirs.contains(dir)) return result; |
