From 5e7313f166fa83cd4d4bcb4e3db913516826a5ea Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Tue, 20 Jul 2021 18:25:34 +0200 Subject: [PATCH] Use MD_STD::json_encode over the generic json_encode --- src/MD_STD_SEC.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MD_STD_SEC.php b/src/MD_STD_SEC.php index a4bce73..7a3d8df 100644 --- a/src/MD_STD_SEC.php +++ b/src/MD_STD_SEC.php @@ -100,7 +100,7 @@ final class MD_STD_SEC { $loginLog['ip'][$hash_ip]['time'] = \time(); // Update the log file - \file_put_contents($logfile_common, \json_encode($loginLog)); + \file_put_contents($logfile_common, MD_STD::json_encode($loginLog)); // Translate counters into delay multipliers $delay_multiplier_common = $loginLog['common']['count'];