diff --git a/src/playlistparsers/parserbase.cpp b/src/playlistparsers/parserbase.cpp index 578dbbfd5..343ab0c47 100644 --- a/src/playlistparsers/parserbase.cpp +++ b/src/playlistparsers/parserbase.cpp @@ -91,7 +91,7 @@ QString ParserBase::URLOrRelativeFilename(const QUrl& url, if (QDir::isAbsolutePath(filename)) { const QString relative = dir.relativeFilePath(filename); - if (!relative.contains("..")) return relative; + if (!relative.startsWith("../")) return relative; } return filename; }