Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
edc8b8e6
Commit
edc8b8e6
authored
Apr 08, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed sanetizing of file name in input_CreateFilename.
It should fix #2620 (and was not limited to windows only).
parent
e99754a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/input/input.c
src/input/input.c
+7
-4
No files found.
src/input/input.c
View file @
edc8b8e6
...
...
@@ -3253,13 +3253,16 @@ char *input_CreateFilename( vlc_object_t *p_obj, const char *psz_path, const cha
if
(
!
psz_tmp
)
return
NULL
;
filename_sanitize
(
psz_tmp
);
if
(
asprintf
(
&
psz_file
,
"%s"
DIR_SEP
"%s%s%s"
,
psz_path
,
psz_tmp
,
char
*
psz_tmp2
=
filename_sanitize
(
psz_tmp
);
free
(
psz_tmp
);
if
(
!
psz_tmp2
||
asprintf
(
&
psz_file
,
"%s"
DIR_SEP
"%s%s%s"
,
psz_path
,
psz_tmp2
,
psz_extension
?
"."
:
""
,
psz_extension
?
psz_extension
:
""
)
<
0
)
psz_file
=
NULL
;
free
(
psz_tmp
);
free
(
psz_tmp
2
);
return
psz_file
;
}
else
...
...
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