Use MD_STD::json_encode over the generic json_encode

This commit is contained in:
Joshua Ramon Enslin 2021-07-20 18:25:34 +02:00
parent 1c5d451619
commit 5e7313f166
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -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'];