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
202f9ae0
Commit
202f9ae0
authored
Jul 24, 2005
by
Jérome Decoodt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix user:pass parsing if protocol is not given.
Not tested with all calls (only http access module)
parent
3c047a9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
include/network.h
include/network.h
+15
-16
No files found.
include/network.h
View file @
202f9ae0
...
...
@@ -112,25 +112,24 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url,
if
(
p
[
1
]
==
'/'
)
p
+=
2
;
url
->
psz_protocol
=
psz_parse
;
psz_parse
=
p
;
p
=
strchr
(
psz_parse
,
'@'
);
if
(
p
!=
NULL
)
{
/* We have a login */
url
->
psz_username
=
psz_parse
;
*
p
++
=
'\0'
;
psz_parse
=
strchr
(
psz_parse
,
':'
);
if
(
psz_parse
!=
NULL
)
{
/* We have a password */
*
psz_parse
++
=
'\0'
;
url
->
psz_password
=
psz_parse
;
}
}
p
=
strchr
(
psz_parse
,
'@'
);
if
(
p
!=
NULL
)
{
/* We have a login */
url
->
psz_username
=
psz_parse
;
*
p
++
=
'\0'
;
psz_parse
=
p
;
psz_parse
=
strchr
(
psz_parse
,
':'
);
if
(
psz_parse
!=
NULL
)
{
/* We have a password */
*
psz_parse
++
=
'\0'
;
url
->
psz_password
=
psz_parse
;
}
psz_parse
=
p
;
}
p
=
strchr
(
psz_parse
,
'/'
);
...
...
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