Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3004ef1b
Commit
3004ef1b
authored
Feb 04, 2020
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/httpauth: do not decode plus sign to space in credentials
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
8224f1e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
httpauth.c
libavformat/httpauth.c
+2
-2
No files found.
libavformat/httpauth.c
View file @
3004ef1b
...
@@ -255,7 +255,7 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth,
...
@@ -255,7 +255,7 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth,
if
(
state
->
auth_type
==
HTTP_AUTH_BASIC
)
{
if
(
state
->
auth_type
==
HTTP_AUTH_BASIC
)
{
int
auth_b64_len
,
len
;
int
auth_b64_len
,
len
;
char
*
ptr
,
*
decoded_auth
=
ff_urldecode
(
auth
,
1
);
char
*
ptr
,
*
decoded_auth
=
ff_urldecode
(
auth
,
0
);
if
(
!
decoded_auth
)
if
(
!
decoded_auth
)
return
NULL
;
return
NULL
;
...
@@ -275,7 +275,7 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth,
...
@@ -275,7 +275,7 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth,
av_strlcat
(
ptr
,
"
\r\n
"
,
len
-
(
ptr
-
authstr
));
av_strlcat
(
ptr
,
"
\r\n
"
,
len
-
(
ptr
-
authstr
));
av_free
(
decoded_auth
);
av_free
(
decoded_auth
);
}
else
if
(
state
->
auth_type
==
HTTP_AUTH_DIGEST
)
{
}
else
if
(
state
->
auth_type
==
HTTP_AUTH_DIGEST
)
{
char
*
username
=
ff_urldecode
(
auth
,
1
),
*
password
;
char
*
username
=
ff_urldecode
(
auth
,
0
),
*
password
;
if
(
!
username
)
if
(
!
username
)
return
NULL
;
return
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