summaryrefslogtreecommitdiffstats
path: root/system/libraries/Xmlrpc.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2010-04-23 18:22:40 +0200
committerDerek Jones <derek.jones@ellislab.com>2010-04-23 18:22:40 +0200
commit5640a7158559f4521911444b50798a6a9536f38b (patch)
treedd25f6ed7be7afa635c067f4b2feda59c37f990d /system/libraries/Xmlrpc.php
parent68c685ec6ed077e0ba4e5628963ef3183bb0a4fa (diff)
ensured the security lib was loaded in a few calls to xss_clean() in other libraries. Fixes #35
Diffstat (limited to 'system/libraries/Xmlrpc.php')
-rw-r--r--system/libraries/Xmlrpc.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/system/libraries/Xmlrpc.php b/system/libraries/Xmlrpc.php
index e2b149b73..ee65398ec 100644
--- a/system/libraries/Xmlrpc.php
+++ b/system/libraries/Xmlrpc.php
@@ -505,6 +505,11 @@ class XML_RPC_Response
{
$CI =& get_instance();
+ if ($this->xss_clean && ! is_object($CI->security))
+ {
+ $CI->load('security');
+ }
+
if ($array !== FALSE && is_array($array))
{
while (list($key) = each($array))
@@ -1119,6 +1124,11 @@ class XML_RPC_Message extends CI_Xmlrpc
{
$CI =& get_instance();
+ if ($this->xss_clean && ! is_object($CI->security))
+ {
+ $CI->load('security');
+ }
+
if ($array !== FALSE && is_array($array))
{
while (list($key) = each($array))