aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Auth.php')
-rw-r--r--app/Models/Auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Auth.php b/app/Models/Auth.php
index 709a80f84..04bd4291f 100644
--- a/app/Models/Auth.php
+++ b/app/Models/Auth.php
@@ -223,7 +223,7 @@ class FreshRSS_Auth {
public static function isCsrfOk($token = null) {
$csrf = Minz_Session::param('csrf');
if ($token === null) {
- $token = Minz_Request::fetchPOST('_csrf');
+ $token = $_POST['_csrf'] ?? '';
}
return $token != '' && $token === $csrf;
}