aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-03-29 16:26:33 +0000
committerDavid Shaw <[email protected]>2002-03-29 16:26:33 +0000
commitd56fb26c5543944691697b2a3df17e351d750a2d (patch)
tree4ea82e17d820ad41a7bdd3cd3547af3586554b32
parentAdded some notes about the colon list mode in gpgsm (diff)
downloadgnupg-d56fb26c5543944691697b2a3df17e351d750a2d.tar.gz
gnupg-d56fb26c5543944691697b2a3df17e351d750a2d.zip
Quote backslashes in keyserver search responses
-rw-r--r--keyserver/ChangeLog4
-rw-r--r--keyserver/gpgkeys_ldap.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/keyserver/ChangeLog b/keyserver/ChangeLog
index 853ec565a..696b7437f 100644
--- a/keyserver/ChangeLog
+++ b/keyserver/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-29 David Shaw <[email protected]>
+
+ * gpgkeys_ldap.c (printquoted): Quote backslashes
+
2002-02-25 David Shaw <[email protected]>
* gpgkeys_ldap (get_key): LDAP keyservers do not support v3
diff --git a/keyserver/gpgkeys_ldap.c b/keyserver/gpgkeys_ldap.c
index d311feb78..bd08e7dba 100644
--- a/keyserver/gpgkeys_ldap.c
+++ b/keyserver/gpgkeys_ldap.c
@@ -438,8 +438,8 @@ void printquoted(FILE *stream,char *string,char delim)
{
while(*string)
{
- if(*string==delim)
- fprintf(stream,"\\x%02X",*string);
+ if(*string==delim || *string=='\\')
+ fprintf(stream,"\\x%02x",*string);
else
fputc(*string,stream);