aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-18 17:57:54 -0700
committerfriendica <info@friendica.com>2012-03-18 17:57:54 -0700
commit02786d6ed0811b0d63c0e466309dfda7740e2609 (patch)
treef28947b8a85bec2c909958f9ed5f6a0c2424c348 /include
parent37f4cbd732de8af22038a06792087c30d4c67989 (diff)
parentc286681158a5c766d740f66cc70d1ef95c34b92a (diff)
downloadvolse-hubzilla-02786d6ed0811b0d63c0e466309dfda7740e2609.tar.gz
volse-hubzilla-02786d6ed0811b0d63c0e466309dfda7740e2609.tar.bz2
volse-hubzilla-02786d6ed0811b0d63c0e466309dfda7740e2609.zip
Merge branch 'pull'
Diffstat (limited to 'include')
-rwxr-xr-xinclude/security.php6
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