From 7f1fbadd971e3e09882896dcef394be5d33dfdcb Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Sun, 20 Nov 2022 06:29:37 +1000 Subject: Change json_decode in bans not to throw JSON exception if contents is bigger than 512 in inc/bans.php --- inc/bans.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/bans.php b/inc/bans.php index 647a25c9..04529518 100644 --- a/inc/bans.php +++ b/inc/bans.php @@ -136,7 +136,7 @@ class Bans { self::delete($ban['id']); } else { if ($ban['post']) - $ban['post'] = json_decode((string) $ban['post'], true, 512, JSON_THROW_ON_ERROR); + $ban['post'] = json_decode((string) $ban['post'], true, 512); $ban['mask'] = self::range_to_string([$ban['ipstart'], $ban['ipend']]); $ban_list[] = $ban; } -- cgit v1.3