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:
commit
a741e2825b
2
strbuf.c
2
strbuf.c
@ -683,7 +683,7 @@ static void strbuf_add_urlencode(struct strbuf *sb, const char *s, size_t len,
|
|||||||
(!reserved && is_rfc3986_reserved(ch)))
|
(!reserved && is_rfc3986_reserved(ch)))
|
||||||
strbuf_addch(sb, ch);
|
strbuf_addch(sb, ch);
|
||||||
else
|
else
|
||||||
strbuf_addf(sb, "%%%02x", ch);
|
strbuf_addf(sb, "%%%02x", (unsigned char)ch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user