mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 07:35:56 +00:00
Merge pull request 'Fixes declaration of Pref_Prefs::csrf_ignore to match IHandler::csrf_ignore' (#58) from jbaldus/tt-rss:jbaldus-fix-pref-prefs into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/58
This commit is contained in:
@@ -27,7 +27,7 @@ class Pref_Prefs extends Handler_Protected {
|
|||||||
const PI_ERR_NO_WORKDIR = "PI_ERR_NO_WORKDIR";
|
const PI_ERR_NO_WORKDIR = "PI_ERR_NO_WORKDIR";
|
||||||
|
|
||||||
/** @param string $method */
|
/** @param string $method */
|
||||||
function csrf_ignore($method) : bool {
|
function csrf_ignore(string $method) : bool {
|
||||||
$csrf_ignored = array("index", "updateself", "otpqrcode");
|
$csrf_ignored = array("index", "updateself", "otpqrcode");
|
||||||
|
|
||||||
return array_search($method, $csrf_ignored) !== false;
|
return array_search($method, $csrf_ignored) !== false;
|
||||||
|
|||||||
Reference in New Issue
Block a user