mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:05:55 +00:00
Update signature of handler 'csrf_ignore' to include types.
This commit is contained in:
@@ -8,7 +8,7 @@ class Feeds extends Handler_Protected {
|
||||
private $viewfeed_timestamp;
|
||||
private $viewfeed_timestamp_last;
|
||||
|
||||
function csrf_ignore($method) {
|
||||
function csrf_ignore(string $method): bool {
|
||||
$csrf_ignored = array("index");
|
||||
|
||||
return array_search($method, $csrf_ignored) !== false;
|
||||
|
||||
Reference in New Issue
Block a user