| @@ 933-948 (lines=16) @@ | ||
| 930 | { |
|
| 931 | $CI =& get_instance(); |
|
| 932 | ||
| 933 | if (is_array($array)) |
|
| 934 | { |
|
| 935 | while (list($key) = each($array)) |
|
| 936 | { |
|
| 937 | if (is_array($array[$key])) |
|
| 938 | { |
|
| 939 | $array[$key] = $this->decode($array[$key]); |
|
| 940 | } |
|
| 941 | elseif ($this->xss_clean) |
|
| 942 | { |
|
| 943 | $array[$key] = $CI->security->xss_clean($array[$key]); |
|
| 944 | } |
|
| 945 | } |
|
| 946 | ||
| 947 | return $array; |
|
| 948 | } |
|
| 949 | ||
| 950 | $result = $this->xmlrpc_decoder($this->val); |
|
| 951 | ||
| @@ 1564-1581 (lines=18) @@ | ||
| 1561 | { |
|
| 1562 | $CI =& get_instance(); |
|
| 1563 | ||
| 1564 | if ( ! empty($array)) |
|
| 1565 | { |
|
| 1566 | while (list($key) = each($array)) |
|
| 1567 | { |
|
| 1568 | if (is_array($array[$key])) |
|
| 1569 | { |
|
| 1570 | $array[$key] = $this->output_parameters($array[$key]); |
|
| 1571 | } |
|
| 1572 | elseif ($key !== 'bits' && $this->xss_clean) |
|
| 1573 | { |
|
| 1574 | // 'bits' is for the MetaWeblog API image bits |
|
| 1575 | // @todo - this needs to be made more general purpose |
|
| 1576 | $array[$key] = $CI->security->xss_clean($array[$key]); |
|
| 1577 | } |
|
| 1578 | } |
|
| 1579 | ||
| 1580 | return $array; |
|
| 1581 | } |
|
| 1582 | ||
| 1583 | $parameters = array(); |
|
| 1584 | ||