Skip to content

Commit 1618452

Browse files
author
Ilia Alshanetsky
committed
MFH: Fixed bug #28597 (xmlrpc_encode_request() incorrectly encodes chars in
200-210 range).
1 parent 307eede commit 1618452

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ PHP 4 NEWS
33
?? Jun 2004, Version 4.3.7
44
- Changed user error handler mechanism to relay to built-in error handler if it
55
returns false. (Andrei)
6+
- Fixed bug #28597 (xmlrpc_encode_request() incorrectly encodes chars in
7+
200-210 range). (fernando dot nemec at folha dot com dot br, Ilia)
68
- Fixed bug #28569 (informix connection id is not thread safe).
79
(novicky at aarongroup dot cz, Ard)
810
- Fixed bug #28564 (Problem building informix as a shared extension).

ext/xmlrpc/libxmlrpc/xml_element.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ static const char rcsid[] = "#(@) $Id$";
4444
* 06/2000
4545
* HISTORY
4646
* $Log$
47+
* Revision 1.3.4.2 2003/12/16 21:00:35 sniper
48+
* MFH: fix compile warnings
49+
*
4750
* Revision 1.3.4.1 2002/11/27 04:07:00 fmk
4851
* MFH
4952
*
@@ -265,10 +268,9 @@ static int create_xml_escape(char *pString, unsigned char c)
265268
pString[counter++] = c / 100 + '0';
266269
c = c % 100;
267270
}
268-
if(c >= 10) {
269-
pString[counter++] = c / 10 + '0';
270-
c = c % 10;
271-
}
271+
pString[counter++] = c / 10 + '0';
272+
c = c % 10;
273+
272274
pString[counter++] = c + '0';
273275
pString[counter++] = ';';
274276
return counter;

0 commit comments

Comments
 (0)