mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:55:56 +00:00
remove csrf token from rpc method sanityCheck
This commit is contained in:
@@ -1007,7 +1007,6 @@
|
||||
|
||||
$params["hotkeys"] = get_hotkeys_map();
|
||||
|
||||
$params["csrf_token"] = $_SESSION["csrf_token"];
|
||||
$params["widescreen"] = (int) $_COOKIE["ttrss_widescreen"];
|
||||
|
||||
$params['simple_update'] = defined('SIMPLE_UPDATE_MODE') && SIMPLE_UPDATE_MODE;
|
||||
|
||||
@@ -47,6 +47,10 @@
|
||||
}
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
const __csrf_token = "<?php echo $_SESSION["csrf_token"]; ?>";
|
||||
</script>
|
||||
|
||||
<?php print_user_stylesheet() ?>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
@@ -576,6 +576,8 @@ const App = {
|
||||
this.is_prefs = is_prefs;
|
||||
window.onerror = this.Error.onWindowError;
|
||||
|
||||
this.setInitParam("csrf_token", __csrf_token);
|
||||
|
||||
this.setupNightModeDetection(() => {
|
||||
parser.parse();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user