Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
993d4fcc
Commit
993d4fcc
authored
Jun 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XSPF: remove harmful base decoding
parent
33ec1713
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+8
-1
No files found.
modules/demux/playlist/xspf.c
View file @
993d4fcc
...
...
@@ -210,7 +210,7 @@ static bool parse_playlist_node COMPLEX_INTERFACE
;
else
if
(
!
strcmp
(
psz_name
,
"xml:base"
)
)
{
p_demux
->
p_sys
->
psz_base
=
decode_URI_duplicate
(
psz_value
);
p_demux
->
p_sys
->
psz_base
=
strdup
(
psz_value
);
}
/* unknown attribute */
else
...
...
@@ -546,6 +546,13 @@ static bool parse_track_node COMPLEX_INTERFACE
/* special case: location */
if
(
!
strcmp
(
p_handler
->
name
,
"location"
)
)
{
/* FIXME: This is broken. Scheme-relative (//...) locations
* and anchors (#...) are not resolved correctly. Also,
* host-relative (/...) and directory-relative locations
* ("relative path" in vernacular) should be resolved.
* Last, psz_base should default to the XSPF resource
* location if missing (not the current working directory).
* -- Courmisch */
if
(
p_demux
->
p_sys
->
psz_base
&&
!
strstr
(
psz_value
,
"://"
)
)
{
char
*
psz_tmp
;
...
...
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