$potententialTrees = unserialize(base64_decode($_GET['back_look']));
$potententialTrees = safe_unserialize(base64_decode($_GET['back_look']));
$_POST['permStatus'] = unserialize(base64_decode($_POST['toProcess']));
$_POST['permStatus'] = safe_unserialize(base64_decode($_POST['toProcess']));
void remove_integration_function(string hook, string function)
- removes the given function from the given hook.
- does nothing if the functions is not available.
void remove_integration_function(string hook, string function)
- removes the given function from the given hook.
- does nothing if the functions is not available.
array safe_unserialize(string data)
- sanitizes input before unserializing string.
function return_chr__preg_callback($matches)
{
return chr($matches[1]);
}
function return_chr__preg_callback($matches)
{
return chr($matches[1]);
}
function safe_unserialize($data)
{
// There's no reason input should contain an object,
// user is up to no good...
if (preg_match('/(^|;|{|})O:([0-9]|\+|\-)+/', $data) === 0)
return @unserialize($data);
}