application/controllers/Api.php
/**
	 * Remove slashes from strings, arrays and objects
	 *
	 * @param    mixed   input data
	 * @return   mixed   cleaned input data
	 */
Remove slashes from strings, arrays and objects
@param    mixed   input data
@return   mixed   cleaned input data
Remove slashes from strings arrays and objects @param mixed input data @return mixed cleaned input data
protected function stripslashesFull($input)
	{
		if (is_array($input)) {
			$input = array_map('stripslashesFull', $input);
		} elseif (is_object($input)) {
			$vars = get_object_vars($input);
			foreach ($vars as $k=>$v) {
				$input->{$k} = stripslashesFull($v);
			}
		} else {
			$input = stripslashes($input);
		}
		return $input;
	}
protected function stripslashesFull ( $ input ) { if ( is_array ( $ input ) ) { $ input = array_map ( 'stripslashesFull' , $ input ) ; } elseif ( is_object ( $ input ) ) { $ vars = get_object_vars ( $ input ) ; foreach ( $ vars as $ k => $ v ) { $ input -> { $ k } = stripslashesFull ( $ v ) ; } } else { $ input = stripslashes ( $ input ) ; } return $ input ; }
Remove slashes from strings, arrays and objects
 @param    mixed   input data
 @return   mixed   cleaned input data
Remove slashes from strings arrays and objects @param mixed input data @return mixed cleaned input data