/** * Returns the data, making sure they are unserialized and removing magic * quotes if enabled * @access public * @return mixed * @static */ function fetch($encoding) { $return = array(); if (JPSPAN_LISTENER_STRIPQUOTES) { $strip = get_magic_quotes_gpc(); } else { $strip = FALSE; } foreach ($_GET as $name => $value) { if (is_array($value)) { foreach ($value as $key => $data) { $value[$key] = $strip ? stripslashes($data) : $data; $value[$key] = JPSpan_Unserializer::unserialize($value[$key], $encoding); } } else { $value = $strip ? stripslashes($value) : $value; $value = JPSpan_Unserializer::unserialize($value, $encoding); } $return[$name] = $value; } return $return; }