summaryrefslogtreecommitdiff
path: root/classes/rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-15 15:32:17 +0300
committerAndrew Dolgov <[email protected]>2020-09-15 15:32:17 +0300
commit7e50c6c4b5995da117cd57cc26032140b0008c48 (patch)
tree95886b8ca3f7bc9073a924a6e512ae9e912144ed /classes/rpc.php
parent91e1542a8205f76a75778425f298c36236ff5fbf (diff)
- enable CSRF support earlier
- remove rpc/sanityCheck from CSRF-excluded calls
Diffstat (limited to 'classes/rpc.php')
-rwxr-xr-xclasses/rpc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/rpc.php b/classes/rpc.php
index 7f809f29b..dbb98e9b7 100755
--- a/classes/rpc.php
+++ b/classes/rpc.php
@@ -2,7 +2,7 @@
class RPC extends Handler_Protected {
function csrf_ignore($method) {
- $csrf_ignored = array("sanitycheck", "completelabels", "saveprofile");
+ $csrf_ignored = array("completelabels", "saveprofile");
return array_search($method, $csrf_ignored) !== false;
}