Changeset 2457
- Timestamp:
- 09/08/08 01:27:12 (2 months ago)
- Files:
-
- 1 modified
-
trunk/htdocs/system/classes/xmlrpcserver.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/xmlrpcserver.php
r737 r2457 20 20 } 21 21 $input= file_get_contents( 'php://input' ); 22 22 23 23 $xml= new SimpleXMLElement( $input ); 24 24 25 25 $function = $xml->methodName; 26 26 $params= array(); 27 foreach($xml->xpath('//params/param/value') as $param) { 28 $params[] = XMLRPCUtils::decode_args($param); 27 $foundParams= $xml->xpath( '//params/param/value' ); 28 if ( is_array( $foundParams ) ) { 29 foreach( $foundParams as $param ) { 30 $params[]= XMLRPCUtils::decode_args( $param ); 31 } 29 32 } 30 33 31 34 $returnvalue= false; 32 35 33 36 Plugins::register(array($this, 'system_listMethods'), 'xmlrpc', 'system.listMethods'); 34 37 $returnvalue = Plugins::xmlrpc("{$function}", $returnvalue, $params, $this);
