From fa2789a1472050beff363553c0565e802cec9fdb Mon Sep 17 00:00:00 2001 From: minhaz Date: Sat, 17 Mar 2018 17:06:09 +0530 Subject: [PATCH] some fixes to random mistake --- libs/csrf/csrfprotector.php | 2 -- test/csrfprotector_test.php | 4 ++-- test/csrfprotector_test_customlogger.php | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/libs/csrf/csrfprotector.php b/libs/csrf/csrfprotector.php index 6e220fb..9d2792e 100755 --- a/libs/csrf/csrfprotector.php +++ b/libs/csrf/csrfprotector.php @@ -3,9 +3,7 @@ include __DIR__ ."/csrfpDefaultLogger.php"; //// Logger class include __DIR__ ."/csrfpAction.php"; //// Actions enumerator - if (!defined('__CSRF_PROTECTOR__')) { - self::refreshToken(); //refresh token for successful validation define('__CSRF_PROTECTOR__', true); // to avoid multiple declaration errors // name of HTTP POST variable for authentication diff --git a/test/csrfprotector_test.php b/test/csrfprotector_test.php index 07ec134..6c864cb 100644 --- a/test/csrfprotector_test.php +++ b/test/csrfprotector_test.php @@ -1,7 +1,7 @@ = 7 && !class_exists('\PHPUnit_Framework_TestCase', true)) { class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase'); diff --git a/test/csrfprotector_test_customlogger.php b/test/csrfprotector_test_customlogger.php index 0ac6e1b..e9080bf 100644 --- a/test/csrfprotector_test_customlogger.php +++ b/test/csrfprotector_test_customlogger.php @@ -1,7 +1,7 @@ = 7 && !class_exists('\PHPUnit_Framework_TestCase', true)) { class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');