Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug #28597 (xmlrpc_encode_request() incorrectly encodes chars in
200-210 range).
Patch by: fernando dot nemec at folha dot com dot br
  • Loading branch information
Ilia Alshanetsky committed Jun 1, 2004
1 parent db9f1fa commit 98a6986
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ext/xmlrpc/libxmlrpc/xml_element.c
Expand Up @@ -44,6 +44,9 @@ static const char rcsid[] = "#(@) $Id$";
* 06/2000
* HISTORY
* $Log$
* Revision 1.5 2003/12/16 21:00:21 sniper
* Fix some compile warnings (patch by Joe Orton)
*
* Revision 1.4 2002/11/26 23:01:16 fmk
* removing unused variables
*
Expand Down Expand Up @@ -265,10 +268,9 @@ static int create_xml_escape(char *pString, unsigned char c)
pString[counter++] = c / 100 + '0';
c = c % 100;
}
if(c >= 10) {
pString[counter++] = c / 10 + '0';
c = c % 10;
}
pString[counter++] = c / 10 + '0';
c = c % 10;

pString[counter++] = c + '0';
pString[counter++] = ';';
return counter;
Expand Down

0 comments on commit 98a6986

Please sign in to comment.