kopia lustrzana https://github.com/friendica/friendica
Re-allow anonymous use of CSRF tokens
rodzic
96ffe95949
commit
9b38abc32c
|
@ -140,11 +140,7 @@ abstract class BaseModule
|
|||
return false;
|
||||
}
|
||||
|
||||
if (empty($a->user)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$sec_hash = hash('whirlpool', $a->user['guid'] . $a->user['prvkey'] . session_id() . $x[0] . $typename);
|
||||
$sec_hash = hash('whirlpool', ($a->user['guid'] ?? '') . ($a->user['prvkey'] ?? '') . session_id() . $x[0] . $typename);
|
||||
|
||||
return ($sec_hash == $x[1]);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue