mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
Jose Kahan pointed out a Digest server that provided the algorith last in the
header line without quotes and with a CRLF immediately following...
This commit is contained in:
parent
ee1235a7cd
commit
7444342675
@ -101,8 +101,8 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
|
|||||||
if((2 == sscanf(header, "%31[^=]=\"%127[^\"]\"",
|
if((2 == sscanf(header, "%31[^=]=\"%127[^\"]\"",
|
||||||
value, content)) ||
|
value, content)) ||
|
||||||
/* try the same scan but without quotes around the content but don't
|
/* try the same scan but without quotes around the content but don't
|
||||||
include the possibly trailing comma */
|
include the possibly trailing comma, newline or carriage return */
|
||||||
(2 == sscanf(header, "%31[^=]=%127[^,]",
|
(2 == sscanf(header, "%31[^=]=%127[^\r\n,]",
|
||||||
value, content)) ) {
|
value, content)) ) {
|
||||||
if(strequal(value, "nonce")) {
|
if(strequal(value, "nonce")) {
|
||||||
d->nonce = strdup(content);
|
d->nonce = strdup(content);
|
||||||
|
Loading…
Reference in New Issue
Block a user