mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-31 00:41:27 +00:00
experimental CSRF protection
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
<?php
|
||||
class RPC extends Protected_Handler {
|
||||
|
||||
function csrf_ignore($method) {
|
||||
$csrf_ignored = array("sanitycheck", "buttonplugin");
|
||||
|
||||
return array_search($method, $csrf_ignored) !== false;
|
||||
}
|
||||
|
||||
function setprofile() {
|
||||
$id = db_escape_string($_REQUEST["id"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user