Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b1c62793
Commit
b1c62793
authored
Aug 31, 2012
by
Angelo Haller
Committed by
Jean-Baptiste Kempf
Aug 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sanitize file path before deletion.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
71c1e355
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+2
-0
No files found.
modules/gui/qt4/input_manager.cpp
View file @
b1c62793
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
#include <QApplication>
#include <QApplication>
#include <QFile>
#include <QFile>
#include <QDir>
#include <assert.h>
#include <assert.h>
...
@@ -726,6 +727,7 @@ void InputManager::setArt( input_item_t *p_item, QString fileUrl )
...
@@ -726,6 +727,7 @@ void InputManager::setArt( input_item_t *p_item, QString fileUrl )
{
{
char
*
psz_cachedir
=
config_GetUserDir
(
VLC_CACHE_DIR
);
char
*
psz_cachedir
=
config_GetUserDir
(
VLC_CACHE_DIR
);
QString
old_url
=
THEMIM
->
getIM
()
->
decodeArtURL
(
p_item
);
QString
old_url
=
THEMIM
->
getIM
()
->
decodeArtURL
(
p_item
);
old_url
=
QDir
(
old_url
).
canonicalPath
();
if
(
old_url
.
startsWith
(
QString
::
fromUtf8
(
psz_cachedir
)
)
)
if
(
old_url
.
startsWith
(
QString
::
fromUtf8
(
psz_cachedir
)
)
)
QFile
(
old_url
).
remove
();
/* Purge cached artwork */
QFile
(
old_url
).
remove
();
/* Purge cached artwork */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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