diff options
Diffstat (limited to 'g10/keyserver.c')
-rw-r--r-- | g10/keyserver.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c index 717c8643e..d5a65526e 100644 --- a/g10/keyserver.c +++ b/g10/keyserver.c @@ -152,7 +152,7 @@ parse_keyserver_uri(char *uri) return 0; } -/* Unquote only the delimiter character */ +/* Unquote only the delimiter character and backslash */ static void printunquoted(char *string,char delim) { @@ -164,12 +164,17 @@ printunquoted(char *string,char delim) { int c; - sscanf(ch,"\\x%02X",&c); + sscanf(ch,"\\x%02x",&c); if(c==delim) { printf("%c",c); ch+=3; } + else if(c=='\\') + { + fputc('\\',stdout); + ch+=3; + } else fputc(*ch,stdout); } |