Exemple #1
0
function AspisRestoreUntaintedGlobalUntainted(&$var, $var_name, &$actions)
{
    if (isset($actions[$var_name])) {
        //I was the one to untaint it
        global $AspisGlobalsTainted;
        unset($AspisGlobalsTainted[$var_name]);
        $var = deAspisWarningR($var);
    }
}
Exemple #2
0
function AspisUntainted_unserialize($v)
{
    $r = unserialize($v);
    if (is_array($r) && count($r) == 2 && $r[1] == -123456789) {
        $r = deAspisWarningR($r);
    }
    return $r;
}