[svn] GnuPG - r4193 - trunk/keyserver
svn author dshaw
cvs at cvs.gnupg.org
Wed Jul 12 23:16:59 CEST 2006
Author: dshaw
Date: 2006-07-12 23:16:57 +0200 (Wed, 12 Jul 2006)
New Revision: 4193
Modified:
trunk/keyserver/ChangeLog
trunk/keyserver/curl-shim.c
trunk/keyserver/gpgkeys_ldap.c
Log:
* gpgkeys_ldap.c (printquoted), curl-shim.c (curl_escape): Fix bad
encoding of characters > 127. Noted by Nalin Dahyabhai.
Modified: trunk/keyserver/ChangeLog
===================================================================
--- trunk/keyserver/ChangeLog 2006-07-12 14:41:08 UTC (rev 4192)
+++ trunk/keyserver/ChangeLog 2006-07-12 21:16:57 UTC (rev 4193)
@@ -1,3 +1,8 @@
+2006-07-12 David Shaw <dshaw at 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 at jabberwocky.com>
* gpgkeys_http.c, gpgkeys_oldhkp.c: Removed.
Modified: trunk/keyserver/curl-shim.c
===================================================================
--- trunk/keyserver/curl-shim.c 2006-07-12 14:41:08 UTC (rev 4192)
+++ trunk/keyserver/curl-shim.c 2006-07-12 21:16:57 UTC (rev 4193)
@@ -306,7 +306,7 @@
else
{
char numbuf[5];
- sprintf(numbuf,"%%%02X",str[idx]);
+ sprintf(numbuf,"%%%02X",(unsigned char)str[idx]);
strcpy(&enc[enc_idx],numbuf);
enc_idx+=3;
}
Modified: trunk/keyserver/gpgkeys_ldap.c
===================================================================
--- trunk/keyserver/gpgkeys_ldap.c 2006-07-12 14:41:08 UTC (rev 4192)
+++ trunk/keyserver/gpgkeys_ldap.c 2006-07-12 21:16:57 UTC (rev 4193)
@@ -1258,7 +1258,7 @@
while(*string)
{
if(*string==delim || *string=='%')
- fprintf(stream,"%%%02x",*string);
+ fprintf(stream,"%%%02x",(unsigned char)*string);
else
fputc(*string,stream);
More information about the Gnupg-commits
mailing list