[sr-dev] git:master: xmlrpc: more correct re XMLRPC spec re. no type specified, defaults to string
Jason Penton
jason.penton at gmail.com
Fri Aug 24 09:25:35 CEST 2012
Module: sip-router
Branch: master
Commit: 35e5e50c8f624ab70ef095bdbc729861b4a0a749
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=35e5e50c8f624ab70ef095bdbc729861b4a0a749
Author: Jason Penton <jason.penton at smilecoms.com>
Committer: Jason Penton <jason.penton at smilecoms.com>
Date: Fri Aug 24 09:21:40 2012 +0200
xmlrpc: more correct re XMLRPC spec re. no type specified, defaults to string
- This will allow you to receive docs like <value>mystringvalue</value>
- instead of only allowing <value><string>mystringvalue</string></value>
- according to spec if no type specified, assume string
- allows kamailio to receive messages from apache ws-xmlrpc which doesnt specify string type
---
modules/xmlrpc/xmlrpc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/xmlrpc/xmlrpc.c b/modules/xmlrpc/xmlrpc.c
index aa5d3aa..8f865ba 100644
--- a/modules/xmlrpc/xmlrpc.c
+++ b/modules/xmlrpc/xmlrpc.c
@@ -1140,7 +1140,7 @@ enum xmlrpc_val_type{
*/
static enum xmlrpc_val_type xml_get_type(xmlNodePtr value)
{
- if (!xmlStrcmp(value->name, BAD_CAST "string")){
+ if (!xmlStrcmp(value->name, BAD_CAST "string") || !xmlStrcmp(value->name, BAD_CAST "text")){
return XML_T_STR;
} else if ( !xmlStrcmp(value->name, BAD_CAST "i4") ||
!xmlStrcmp(value->name, BAD_CAST "int")) {
More information about the sr-dev
mailing list