From d9089973de9b7ebc45336cf10b8b919ad691a099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Mon, 4 Jun 2018 16:44:03 +0200 Subject: [PATCH] :ambulance: fix(core) Remove useless line in CSRFProtection issue #5840 --- include/class_CSRFProtection.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/include/class_CSRFProtection.inc b/include/class_CSRFProtection.inc index 7c3f6954a..cfa60da00 100644 --- a/include/class_CSRFProtection.inc +++ b/include/class_CSRFProtection.inc @@ -31,7 +31,6 @@ class CSRFProtection static::checkHeaders(); - $validToken = static::getToken(); if ($_POST['CSRFtoken'] !== static::getToken()) { throw new Exception('CSRF protection token invalid'); } -- GitLab