mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 10:14:33 -04:00
Better function isPost
Use $_SERVER['REQUEST_METHOD'] instead of empty($_POST) Possibly related to #413
This commit is contained in:
1 parent
483513c30f
commit
9f6fa5f7c6
1 file changed
+1
-1
@@ -199,6 +199,6 @@ class Minz_Request {
|
||||
}
|
||||
|
||||
public static function isPost () {
|
||||
return !empty ($_POST) || !empty ($_FILES);
|
||||
return $_SERVER['REQUEST_METHOD'] === 'POST';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user