From 20bb9fe42f5f9018e93a041948421065ca6cf885 Mon Sep 17 00:00:00 2001 From: glaszig Date: Tue, 30 Jul 2019 17:22:03 +0200 Subject: [PATCH] add csrf meta tag (for use with xhr, for example) --- includes/functions.php | 9 +++++++++ index.php | 1 + 2 files changed, 10 insertions(+) diff --git a/includes/functions.php b/includes/functions.php index 316665d3..31790d5b 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -67,6 +67,15 @@ function CSRFToken() '; +} + /** * * Validate CSRF Token diff --git a/index.php b/index.php index e8af838a..f204ea12 100755 --- a/index.php +++ b/index.php @@ -64,6 +64,7 @@ $theme_url = 'dist/css/'.htmlspecialchars($theme, ENT_QUOTES); +