mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-22 19:58:29 +01:00
* gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix bad
encoding of characters > 127. Noted by Nalin Dahyabhai.
This commit is contained in:
parent
0b5bc307d7
commit
5476afe1b4
@ -1,3 +1,8 @@
|
|||||||
|
2006-07-12 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix bad
|
||||||
|
encoding of characters > 127. Noted by Nalin Dahyabhai.
|
||||||
|
|
||||||
2006-04-26 David Shaw <dshaw@jabberwocky.com>
|
2006-04-26 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* gpgkeys_http.c, gpgkeys_oldhkp.c: Removed.
|
* gpgkeys_http.c, gpgkeys_oldhkp.c: Removed.
|
||||||
|
@ -306,7 +306,7 @@ curl_escape(char *str,int length)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
char numbuf[5];
|
char numbuf[5];
|
||||||
sprintf(numbuf,"%%%02X",str[idx]);
|
sprintf(numbuf,"%%%02X",(unsigned char)str[idx]);
|
||||||
strcpy(&enc[enc_idx],numbuf);
|
strcpy(&enc[enc_idx],numbuf);
|
||||||
enc_idx+=3;
|
enc_idx+=3;
|
||||||
}
|
}
|
||||||
|
@ -1258,7 +1258,7 @@ printquoted(FILE *stream,char *string,char delim)
|
|||||||
while(*string)
|
while(*string)
|
||||||
{
|
{
|
||||||
if(*string==delim || *string=='%')
|
if(*string==delim || *string=='%')
|
||||||
fprintf(stream,"%%%02x",*string);
|
fprintf(stream,"%%%02x",(unsigned char)*string);
|
||||||
else
|
else
|
||||||
fputc(*string,stream);
|
fputc(*string,stream);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user