Commit 835b9389 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[libarchiveplugin] Remove trailing slash while there is one

Makes it more resilient.
parent 2d6fbadb
Pipeline #102552 passed with stage
in 2 minutes and 56 seconds
......@@ -265,7 +265,7 @@ bool LibarchivePlugin::extractFiles(const QVector<Archive::Entry*> &files, const
}
// Don't allow absolute paths, instead, treat them like relative to the root of the archive.
if (entryName.startsWith(QLatin1Char( '/' ))) {
while (entryName.startsWith(QLatin1Char('/'))) {
entryName.remove(0, 1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment