1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 03:15:56 +00:00

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

@@ -1,7 +1,7 @@
<?php
class OPML extends Handler_Protected {
function csrf_ignore($method) {
function csrf_ignore(string $method): bool {
$csrf_ignored = array("export", "import");
return array_search($method, $csrf_ignored) !== false;