diff options
author | Derek Jones <derek.jones@ellislab.com> | 2009-06-24 17:27:01 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2009-06-24 17:27:01 +0200 |
commit | b8d3c3defbef3563889641bf4448eeaa51519e42 (patch) | |
tree | 9dc9b069a80b07e3a4d04a8217cbd7f60f954e73 /system/libraries | |
parent | 6d1998cc153243f148b666b28a909675fc2725e5 (diff) |
some mods to xmlrpc library to handle data types better, and to exit() content so Output class does not muck with it
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Xmlrpc.php | 6 | ||||
-rw-r--r-- | system/libraries/Xmlrpcs.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Xmlrpc.php b/system/libraries/Xmlrpc.php index 4a5b97fb9..2022a7eba 100644 --- a/system/libraries/Xmlrpc.php +++ b/system/libraries/Xmlrpc.php @@ -1351,13 +1351,13 @@ class XML_RPC_Values extends CI_Xmlrpc switch ($typ) { case $this->xmlrpcBase64: - $rs .= "<{$typ}>" . base64_encode($val) . "</{$typ}>\n"; + $rs .= "<{$typ}>" . base64_encode((string)$val) . "</{$typ}>\n"; break; case $this->xmlrpcBoolean: - $rs .= "<{$typ}>" . ($val ? '1' : '0') . "</{$typ}>\n"; + $rs .= "<{$typ}>" . ((bool)$val ? '1' : '0') . "</{$typ}>\n"; break; case $this->xmlrpcString: - $rs .= "<{$typ}>" . htmlspecialchars($val). "</{$typ}>\n"; + $rs .= "<{$typ}>" . htmlspecialchars((string)$val). "</{$typ}>\n"; break; default: $rs .= "<{$typ}>{$val}</{$typ}>\n"; diff --git a/system/libraries/Xmlrpcs.php b/system/libraries/Xmlrpcs.php index b7382fae9..c7daa600f 100644 --- a/system/libraries/Xmlrpcs.php +++ b/system/libraries/Xmlrpcs.php @@ -123,7 +123,7 @@ class CI_Xmlrpcs extends CI_Xmlrpc header("Content-Type: text/xml"); header("Content-Length: ".strlen($payload)); - echo $payload; + exit($payload); } //------------------------------------- |