Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a40078c8
Commit
a40078c8
authored
Nov 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httpd: full URL is also valid for HTTP (fixes #2320)
Also skip URI authority properly.
parent
016b0842
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/network/httpd.c
src/network/httpd.c
+10
-6
No files found.
src/network/httpd.c
View file @
a40078c8
...
...
@@ -1743,12 +1743,16 @@ static void httpd_ClientRecv( httpd_client_t *cl )
{
*
p2
++
=
'\0'
;
}
if
(
!
strncasecmp
(
p
,
"rtsp:"
,
5
)
)
{
/* for rtsp url, you have rtsp://localhost:port/path */
p
+=
5
;
while
(
*
p
==
'/'
)
p
++
;
while
(
*
p
&&
*
p
!=
'/'
)
p
++
;
if
(
!
strncasecmp
(
p
,
(
cl
->
query
.
i_proto
==
HTTPD_PROTO_HTTP
)
?
"http"
:
"rtsp"
,
4
)
&&
p
[
4
+
!!
strchr
(
"sS"
,
p
[
4
]
)]
==
':'
)
{
/* Skip hier-part of URL (if present) */
p
=
strchr
(
p
,
':'
)
+
1
;
/* skip URI scheme */
if
(
!
strncmp
(
p
,
"//"
,
2
)
)
/* skip authority */
{
/* see RFC3986 §3.2 */
p
+=
2
;
while
(
*
p
&&
!
strchr
(
"/?#"
,
*
p
)
)
p
++
;
}
}
cl
->
query
.
psz_url
=
strdup
(
p
);
if
(
(
p3
=
strchr
(
cl
->
query
.
psz_url
,
'?'
)
)
)
...
...
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