From cb0d01101fe65cb95fcb4b4253b1e02ebacaa135 Mon Sep 17 00:00:00 2001 From: Dominique FOURNIER Date: Thu, 21 Jul 2022 13:30:31 +0200 Subject: [PATCH] Form : use Csrf (instead of csrf) --- src/Form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form.php b/src/Form.php index 500ef6e..b4a91b1 100644 --- a/src/Form.php +++ b/src/Form.php @@ -382,7 +382,7 @@ class Form if ($this->csrf === TRUE) { - $csrf = new csrf (); + $csrf = new Csrf (); $csrf->field = $this->formName."[".$this->csrfField."]"; $res .= $csrf->displayFormCSRF (); $this->csrfToken = $csrf->getToken (); @@ -433,7 +433,7 @@ class Form public function checkToken ($tokenFromUser) // {{{ { - $csrf = new csrf (); + $csrf = new Csrf (); $csrf->field = $this->csrfField; // The checkThenDeleteToken method check the token and except if there is a // problem. If there is no problem, it delete the token