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
e8d2d6d3
Commit
e8d2d6d3
authored
Nov 27, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mozilla: backport absolute URL parsing from trunk
parent
9f319bf0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
mozilla/vlcplugin.cpp
mozilla/vlcplugin.cpp
+18
-7
No files found.
mozilla/vlcplugin.cpp
View file @
e8d2d6d3
...
...
@@ -303,9 +303,18 @@ char *VlcPlugin::getAbsoluteURL(const char *url)
{
// validate protocol header
const
char
*
start
=
url
;
while
(
start
!=
end
)
{
char
c
=
tolower
(
*
start
);
if
(
(
c
<
'a'
)
||
(
c
>
'z'
)
)
char
c
=
*
start
;
if
(
isalpha
(
c
)
)
{
++
start
;
while
(
start
!=
end
)
{
c
=
*
start
;
if
(
!
(
isalnum
(
c
)
||
(
'-'
==
c
)
||
(
'+'
==
c
)
||
(
'.'
==
c
)
||
(
'/'
==
c
))
)
/* VLC uses / to allow user to specify a demuxer */
// not valid protocol header, assume relative URL
goto
relativeurl
;
++
start
;
...
...
@@ -313,6 +322,8 @@ char *VlcPlugin::getAbsoluteURL(const char *url)
/* we have a protocol header, therefore URL is absolute */
return
strdup
(
url
);
}
// not a valid protocol header, assume relative URL
}
relativeurl:
...
...
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