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
6edb730d
Commit
6edb730d
authored
Jul 17, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore insecure HTTP redirection to non HTTP protocol
parent
1a8f715c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/access/http.c
modules/access/http.c
+9
-1
No files found.
modules/access/http.c
View file @
6edb730d
...
@@ -322,6 +322,15 @@ static int Open( vlc_object_t *p_this )
...
@@ -322,6 +322,15 @@ static int Open( vlc_object_t *p_this )
msg_Dbg
(
p_access
,
"redirection to %s"
,
p_sys
->
psz_location
);
msg_Dbg
(
p_access
,
"redirection to %s"
,
p_sys
->
psz_location
);
/* Do not accept redirection outside of HTTP works */
if
(
strncmp
(
p_sys
->
psz_location
,
"http"
,
4
)
||
(
(
p_sys
->
psz_location
[
4
]
!=
':'
)
/* HTTP */
&&
strncmp
(
p_sys
->
psz_location
+
4
,
"s:"
,
2
)
/* HTTP/SSL */
)
)
{
msg_Err
(
p_access
,
"insecure redirection ignored"
);
goto
error
;
}
p_playlist
=
vlc_object_find
(
p_access
,
VLC_OBJECT_PLAYLIST
,
p_playlist
=
vlc_object_find
(
p_access
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
FIND_ANYWHERE
);
if
(
!
p_playlist
)
if
(
!
p_playlist
)
...
@@ -874,7 +883,6 @@ static int Request( access_t *p_access, int64_t i_tell )
...
@@ -874,7 +883,6 @@ static int Request( access_t *p_access, int64_t i_tell )
if
(
p_sys
->
b_proxy
)
if
(
p_sys
->
b_proxy
)
{
{
/* FIXME: support SSL proxies */
if
(
p_sys
->
url
.
psz_path
)
if
(
p_sys
->
url
.
psz_path
)
{
{
net_Printf
(
VLC_OBJECT
(
p_access
),
p_sys
->
fd
,
NULL
,
net_Printf
(
VLC_OBJECT
(
p_access
),
p_sys
->
fd
,
NULL
,
...
...
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