aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2006-07-12 21:16:57 +0000
committerDavid Shaw <[email protected]>2006-07-12 21:16:57 +0000
commit5476afe1b4fd47695e94734981a35b2602f31054 (patch)
tree81bc36e56ad7355456be093552eee9a5a3a3a3fe
parent* tar-ustar.m4: Use dd instead of strings as it's more likely to be (diff)
downloadgnupg-5476afe1b4fd47695e94734981a35b2602f31054.tar.gz
gnupg-5476afe1b4fd47695e94734981a35b2602f31054.zip
* gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix bad
encoding of characters > 127. Noted by Nalin Dahyabhai.
Diffstat (limited to '')
-rw-r--r--keyserver/ChangeLog5
-rw-r--r--keyserver/curl-shim.c2
-rw-r--r--keyserver/gpgkeys_ldap.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/keyserver/ChangeLog b/keyserver/ChangeLog
index c171f6a3a..0a4da42f3 100644
--- a/keyserver/ChangeLog
+++ b/keyserver/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-12 David Shaw <[email protected]>
+
+ * gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix bad
+ encoding of characters > 127. Noted by Nalin Dahyabhai.
+
2006-04-26 David Shaw <[email protected]>
* gpgkeys_http.c, gpgkeys_oldhkp.c: Removed.
diff --git a/keyserver/curl-shim.c b/keyserver/curl-shim.c
index 4a4d18f56..8c7c36539 100644
--- a/keyserver/curl-shim.c
+++ b/keyserver/curl-shim.c
@@ -306,7 +306,7 @@ curl_escape(char *str,int length)
else
{
char numbuf[5];
- sprintf(numbuf,"%%%02X",str[idx]);
+ sprintf(numbuf,"%%%02X",(unsigned char)str[idx]);
strcpy(&enc[enc_idx],numbuf);
enc_idx+=3;
}
diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c
index b4bd00e4f..2e4d39d4a 100644
--- a/keyserver/gpgkeys_ldap.c
+++ b/keyserver/gpgkeys_ldap.c
@@ -1258,7 +1258,7 @@ printquoted(FILE *stream,char *string,char delim)
while(*string)
{
if(*string==delim || *string=='%')
- fprintf(stream,"%%%02x",*string);
+ fprintf(stream,"%%%02x",(unsigned char)*string);
else
fputc(*string,stream);