diff options
author | David Shaw <[email protected]> | 2004-08-19 21:19:37 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-08-19 21:19:37 +0000 |
commit | b9167cb0d81f3ec77feef2736a7723fe6b5d8506 (patch) | |
tree | bbecb9de788d3753eb59ab9bec3ec2db7a483afd | |
parent | (encode_session_key): Changed the zero random byte (diff) | |
download | gnupg-b9167cb0d81f3ec77feef2736a7723fe6b5d8506.tar.gz gnupg-b9167cb0d81f3ec77feef2736a7723fe6b5d8506.zip |
* http.c (insert_escapes): Fix encoding problem for non-URI-safe
characters. Noted by Vladimir Novak.
Diffstat (limited to '')
-rw-r--r-- | util/ChangeLog | 5 | ||||
-rw-r--r-- | util/http.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index ee0401b16..63f73ea18 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-05-21 David Shaw <[email protected]> * timegm.c: New replacement function. Removes the need for diff --git a/util/http.c b/util/http.c index 02d678124..64fca453f 100644 --- a/util/http.c +++ b/util/http.c @@ -1,5 +1,5 @@ /* http.c - HTTP protocol handler - * Copyright (C) 1999, 2001, 2002, 2003 Free Software Foundation, Inc. + * Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -411,7 +411,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; |