Update signature of handler 'csrf_ignore' to include types.

This commit is contained in:
wn_
2021-11-12 02:01:31 +00:00
parent 57bf56f794
commit 5606e38bff
12 changed files with 12 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ class Pref_Feeds extends Handler_Protected {
const E_ICON_UPLOAD_FAILED = 'E_ICON_UPLOAD_FAILED';
const E_ICON_UPLOAD_SUCCESS = 'E_ICON_UPLOAD_SUCCESS';
function csrf_ignore($method) {
function csrf_ignore(string $method): bool {
$csrf_ignored = array("index", "getfeedtree", "savefeedorder");
return array_search($method, $csrf_ignored) !== false;