diff options
author | Harry Sintonen <sintonen@iki.fi> | 2021-05-03 00:07:57 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-03 16:35:25 +0200 |
commit | 6201f5c6995bcacbaf0104f4b537f7d926314f67 (patch) | |
tree | 1566199a82972977788414c719c44609979a3bbc /lib | |
parent | a60294cf4319e8dd0cbb9b3bba178451d4de37d2 (diff) | |
download | curl-6201f5c6995bcacbaf0104f4b537f7d926314f67.tar.gz |
Curl_input_digest: require space after Digest
Closes #6993
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_digest.c b/lib/http_digest.c index 132f3930c..049b232e0 100644 --- a/lib/http_digest.c +++ b/lib/http_digest.c @@ -56,7 +56,7 @@ CURLcode Curl_input_digest(struct Curl_easy *data, digest = &data->state.digest; } - if(!checkprefix("Digest", header)) + if(!checkprefix("Digest", header) || !ISSPACE(header[6])) return CURLE_BAD_CONTENT_ENCODING; header += strlen("Digest"); |