mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:50:12 +00:00
CSRF-Protection in the group-related form (creating, renaming and dropping a group, adding/removing members from it)
This commit is contained in:
parent
72894b0e91
commit
453b5b46a3
5 changed files with 29 additions and 10 deletions
|
@ -334,3 +334,9 @@ function check_form_security_token_redirectOnErr($err_redirect, $typename = "",
|
|||
goaway($a->get_baseurl() . $err_redirect );
|
||||
}
|
||||
}
|
||||
function check_form_security_token_ForbiddenOnErr($typename = "", $formname = 'form_security_token') {
|
||||
if (!check_form_security_token($typename, $formname)) {
|
||||
header('HTTP/1.1 403 Forbidden');
|
||||
killme();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue