return valid path also for package root.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=861218
This commit is contained in:
parent
f13d5127b8
commit
7fefa21903
@ -136,7 +136,7 @@ QString Package::filePath(const char* fileType, const QString& filename) const
|
||||
// ensure that we don't return files outside of our base path
|
||||
// due to symlink or ../ games
|
||||
QDir dir(path);
|
||||
QString canonicalized = dir.canonicalPath();
|
||||
QString canonicalized = dir.canonicalPath() + QDir::separator();
|
||||
if (canonicalized.startsWith(d->basePath)) {
|
||||
return path;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user