summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-06-01 20:16:18 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-06-01 20:16:18 +0000
commit1618452e53a492047a10124bd86bff826bdcbdad (patch)
tree0ecdc4cd32ccb7b48d5200b5ddaebfe0872d606b
parent307eedeffe8504ff06501e14e08cb29c4da2a75a (diff)
downloadphp-git-1618452e53a492047a10124bd86bff826bdcbdad.tar.gz
MFH: Fixed bug #28597 (xmlrpc_encode_request() incorrectly encodes chars in
200-210 range).
-rw-r--r--NEWS2
-rw-r--r--ext/xmlrpc/libxmlrpc/xml_element.c10
2 files changed, 8 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 0a81a14d6c..b3b3619a77 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ PHP 4 NEWS
?? Jun 2004, Version 4.3.7
- Changed user error handler mechanism to relay to built-in error handler if it
returns false. (Andrei)
+- Fixed bug #28597 (xmlrpc_encode_request() incorrectly encodes chars in
+ 200-210 range). (fernando dot nemec at folha dot com dot br, Ilia)
- Fixed bug #28569 (informix connection id is not thread safe).
(novicky at aarongroup dot cz, Ard)
- Fixed bug #28564 (Problem building informix as a shared extension).
diff --git a/ext/xmlrpc/libxmlrpc/xml_element.c b/ext/xmlrpc/libxmlrpc/xml_element.c
index 9e65dce0a1..8694b67fbc 100644
--- a/ext/xmlrpc/libxmlrpc/xml_element.c
+++ b/ext/xmlrpc/libxmlrpc/xml_element.c
@@ -44,6 +44,9 @@ static const char rcsid[] = "#(@) $Id$";
* 06/2000
* HISTORY
* $Log$
+ * Revision 1.3.4.2 2003/12/16 21:00:35 sniper
+ * MFH: fix compile warnings
+ *
* Revision 1.3.4.1 2002/11/27 04:07:00 fmk
* MFH
*
@@ -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;