Commit 81c48aa4 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Joel Chen reported that we assumed content within quotes a bit too much in

the digest code. This fixes it.
parent 0cfa9b52
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -168,7 +168,12 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
        else {
          /* unknown specifier, ignore it! */
        }
        totlen = strlen(value)+strlen(content)+3;
        totlen = strlen(value)+strlen(content)+1;

        if(header[strlen(value)+1] == '\"')
          /* the contents were within quotes, then add 2 for them to the
             length */
          totlen += 2;
      }
      else
        break; /* we're done here */