From 20952e3f133bb2097f9f86fd2f2fffe4870d4228 Mon Sep 17 00:00:00 2001 From: nashe Date: Sat, 23 Dec 2017 21:08:23 +0100 Subject: Implement and expose a CSRF mitigation --- app/app.php | 2 +- app/classes/CSRF.php | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 app/classes/CSRF.php diff --git a/app/app.php b/app/app.php index 64c120a..0797cc7 100755 --- a/app/app.php +++ b/app/app.php @@ -29,4 +29,4 @@ if (is_installed()) { } $l10n = new Simplel10n($conf['locale']); - +$csrf = new CSRF(); diff --git a/app/classes/CSRF.php b/app/classes/CSRF.php new file mode 100644 index 0000000..3e23380 --- /dev/null +++ b/app/classes/CSRF.php @@ -0,0 +1,49 @@ +