mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 01:45:56 +00:00
Update signature of handler 'csrf_ignore' to include types.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
class Pref_Filters extends Handler_Protected {
|
||||
|
||||
function csrf_ignore($method) {
|
||||
function csrf_ignore(string $method): bool {
|
||||
$csrf_ignored = array("index", "getfiltertree", "savefilterorder");
|
||||
|
||||
return array_search($method, $csrf_ignored) !== false;
|
||||
|
||||
Reference in New Issue
Block a user