Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Ark
Commits
835b9389
Commit
835b9389
authored
Nov 28, 2021
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
plugins/libarchive/libarchiveplugin.cpp
View file @
835b9389
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment