diff options
Diffstat (limited to 'classes/rpc.php')
-rw-r--r-- | classes/rpc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index 8145b0407..4cdaef935 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -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"]); |