mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* http.c (insert_escapes): Fix encoding problem for non-URI-safe
characters. Noted by Vladimir Novak.
This commit is contained in:
parent
bf256b9696
commit
b9167cb0d8
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue