1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

Curl_input_digest: require space after Digest

Closes #6993
This commit is contained in:
Harry Sintonen 2021-05-03 00:07:57 +03:00 committed by Daniel Stenberg
parent a60294cf43
commit 6201f5c699
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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");