diff options
author | Marton Balint <cus@passwd.hu> | 2020-02-04 23:44:28 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2020-02-15 18:41:36 +0100 |
commit | 8224f1e0ba65c064cf0fa2e11e4c688501b6eddd (patch) | |
tree | a32ddeb114d647b77c54090a33ef6ec849effa7e /libavformat/httpauth.c | |
parent | 6a7b5226e1c868fe6406b114e7303c70d886900b (diff) | |
download | ffmpeg-8224f1e0ba65c064cf0fa2e11e4c688501b6eddd.tar.gz |
avformat/urldecode: add the ability to not decode plus sign to space
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/httpauth.c')
-rw-r--r-- | libavformat/httpauth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c index 2d42ab2190..54d0322c6a 100644 --- a/libavformat/httpauth.c +++ b/libavformat/httpauth.c @@ -255,7 +255,7 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth, if (state->auth_type == HTTP_AUTH_BASIC) { int auth_b64_len, len; - char *ptr, *decoded_auth = ff_urldecode(auth); + char *ptr, *decoded_auth = ff_urldecode(auth, 1); if (!decoded_auth) return NULL; @@ -275,7 +275,7 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth, av_strlcat(ptr, "\r\n", len - (ptr - authstr)); av_free(decoded_auth); } else if (state->auth_type == HTTP_AUTH_DIGEST) { - char *username = ff_urldecode(auth), *password; + char *username = ff_urldecode(auth, 1), *password; if (!username) return NULL; |