diff options
author | David Shaw <[email protected]> | 2004-08-19 20:28:01 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-08-19 20:28:01 +0000 |
commit | 7f2369b7dfd002a8b1a087b43f1a9daafbc1f4b8 (patch) | |
tree | 7ca4f113dd6b3468e8641dad763e64385ebb4b6e | |
parent | (encode_session_key): Changed the zero random byte (diff) | |
download | gnupg-7f2369b7dfd002a8b1a087b43f1a9daafbc1f4b8.tar.gz gnupg-7f2369b7dfd002a8b1a087b43f1a9daafbc1f4b8.zip |
* http.c (insert_escapes): Fix encoding problem for non-URI-safe
characters. Noted by Vladimir Novak.
-rw-r--r-- | util/ChangeLog | 5 | ||||
-rw-r--r-- | util/http.c | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index d151326d1..d31de6a59 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,8 @@ +2004-08-19 David Shaw <[email protected]> + + * http.c (insert_escapes): Fix encoding problem for non-URI-safe + characters. Noted by Vladimir Novak. + 2004-08-11 Werner Koch <[email protected]> * dotlock.c (destroy_dotlock): New. diff --git a/util/http.c b/util/http.c index 39bbbfe32..12c98016a 100644 --- a/util/http.c +++ b/util/http.c @@ -1,5 +1,5 @@ /* http.c - HTTP protocol handler - * Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc. + * Copyright (C) 1999, 2001, 2003, 2004 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -420,7 +420,7 @@ insert_escapes( byte *buffer, const byte *string, const byte *special ) } else { if( buffer ) { - sprintf( buffer, "%02X", *string ); + sprintf( buffer, "%%%02X", *string ); buffer += 3; } n += 3; @@ -430,9 +430,6 @@ insert_escapes( byte *buffer, const byte *string, const byte *special ) } - - - static URI_TUPLE parse_tuple( byte *string ) { |