diff options
| author | Appleman1234 <applemansigloo@gmail.com> | 2022-11-20 06:29:37 +1000 |
|---|---|---|
| committer | Appleman1234 <applemansigloo@gmail.com> | 2022-11-20 06:29:37 +1000 |
| commit | 7f1fbadd971e3e09882896dcef394be5d33dfdcb (patch) | |
| tree | a6c5f64dae388984c8a1433782d4b140dd65c2c1 /inc | |
| parent | 13bd68659b52d36a99be8f77a7ba1b387b0fbbfe (diff) | |
Change json_decode in bans not to throw JSON exception if contents is bigger than 512 in inc/bans.php
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/bans.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
