diff options
author | friendica <info@friendica.com> | 2012-03-18 17:57:54 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-18 17:57:54 -0700 |
commit | 02786d6ed0811b0d63c0e466309dfda7740e2609 (patch) | |
tree | f28947b8a85bec2c909958f9ed5f6a0c2424c348 /include | |
parent | 37f4cbd732de8af22038a06792087c30d4c67989 (diff) | |
parent | c286681158a5c766d740f66cc70d1ef95c34b92a (diff) | |
download | volse-hubzilla-02786d6ed0811b0d63c0e466309dfda7740e2609.tar.gz volse-hubzilla-02786d6ed0811b0d63c0e466309dfda7740e2609.tar.bz2 volse-hubzilla-02786d6ed0811b0d63c0e466309dfda7740e2609.zip |
Merge branch 'pull'
Diffstat (limited to 'include')
-rwxr-xr-x | include/security.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/security.php b/include/security.php index 6ea515bff..45473445a 100755 --- a/include/security.php +++ b/include/security.php @@ -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(); + } +}
\ No newline at end of file |