mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-24 19:37:10 +00:00
experimental CSRF protection
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
class Pref_Feeds extends Protected_Handler {
|
||||
|
||||
function csrf_ignore($method) {
|
||||
$csrf_ignored = array("index", "getfeedtree", "add", "editcats", "editfeed");
|
||||
|
||||
return array_search($method, $csrf_ignored) !== false;
|
||||
}
|
||||
|
||||
function batch_edit_cbox($elem, $label = false) {
|
||||
print "<input type=\"checkbox\" title=\"".__("Check to enable field")."\"
|
||||
onchange=\"dijit.byId('feedEditDlg').toggleField(this, '$elem', '$label')\">";
|
||||
|
||||
Reference in New Issue
Block a user