1
0
mirror of https://github.com/git/git.git synced 2024-09-28 10:00:54 +02:00

Merge branch 'jd/fix-strbuf-add-urlencode-bytes'

Bytes with high-bit set were encoded incorrectly and made
credential helper fail.

* jd/fix-strbuf-add-urlencode-bytes:
  strbuf: fix urlencode format string on signed char
This commit is contained in:
Junio C Hamano 2018-01-05 13:28:10 -08:00
commit a741e2825b

View File

@ -683,7 +683,7 @@ static void strbuf_add_urlencode(struct strbuf *sb, const char *s, size_t len,
(!reserved && is_rfc3986_reserved(ch)))
strbuf_addch(sb, ch);
else
strbuf_addf(sb, "%%%02x", ch);
strbuf_addf(sb, "%%%02x", (unsigned char)ch);
}
}