diff options
author | thomas <thomas@chauchefoin.fr> | 2018-01-02 19:47:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-02 19:47:30 +0100 |
commit | 42b380f811e1bb3258e5d66ad8ce6eb5ba0852c3 (patch) | |
tree | 90758e2e1b2e3763a94f91e33ad184e51f21e5ff /app/app.php | |
parent | cd67a4a6b3929fe027f9073d1e48182123b6fca2 (diff) | |
parent | 7d9e7183cbc189c356a9bff5d640706959eca1ee (diff) | |
download | planet-42b380f811e1bb3258e5d66ad8ce6eb5ba0852c3.tar planet-42b380f811e1bb3258e5d66ad8ce6eb5ba0852c3.tar.gz planet-42b380f811e1bb3258e5d66ad8ce6eb5ba0852c3.tar.bz2 planet-42b380f811e1bb3258e5d66ad8ce6eb5ba0852c3.tar.xz planet-42b380f811e1bb3258e5d66ad8ce6eb5ba0852c3.zip |
Merge pull request #98 from moonmoon/anti-csrf
Implement a mitigation against CSRF attacks
Diffstat (limited to 'app/app.php')
-rwxr-xr-x | app/app.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/app.php b/app/app.php index a6232cf..0797cc7 100755 --- a/app/app.php +++ b/app/app.php @@ -7,6 +7,8 @@ require_once __DIR__.'/../vendor/autoload.php'; $savedConfig = __DIR__.'/../custom/config.yml'; $moon_version = file_get_contents(__DIR__.'/../VERSION'); +session_start(); + if (is_installed()) { $conf = Spyc::YAMLLoad($savedConfig); @@ -27,4 +29,4 @@ if (is_installed()) { } $l10n = new Simplel10n($conf['locale']); - +$csrf = new CSRF(); |