summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-14 20:00:01 +0300
committerAndrew Dolgov <[email protected]>2020-09-14 20:00:01 +0300
commitb4cb67e77f3b228c007f58caac234cae1afabe73 (patch)
tree57b1e6fe915cf2a2ce01ecc076d085cb16c22f08 /prefs.php
parentc3d14e1fa54c7dade7b1b7955575e2991396d7ef (diff)
remove csrf token from rpc method sanityCheck
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/prefs.php b/prefs.php
index 12976ad8f..51699cef9 100644
--- a/prefs.php
+++ b/prefs.php
@@ -39,6 +39,10 @@
}
?>
+ <script type="text/javascript">
+ const __csrf_token = "<?php echo $_SESSION["csrf_token"]; ?>";
+ </script>
+
<?php print_user_stylesheet() ?>
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>