1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 15:40:12 +01:00

bans.php: fix forgot to extract the mask

This commit is contained in:
Zankaria 2024-07-14 20:46:50 +02:00 committed by Zankaria
parent 7e4acbb6d2
commit 51e0616eb8

View File

@ -88,6 +88,8 @@ class Bans {
if ($ret['post']) {
$ret['post'] = json_decode($ret['post'], true);
}
$ret['mask'] = self::range_to_string([$ret['ipstart'], $ret['ipend']]);
return $ret;
}
}
@ -151,6 +153,7 @@ class Bans {
if ($ban['post']) {
$ban['post'] = json_decode($ban['post'], true);
}
$ban['mask'] = self::range_to_string([$ban['ipstart'], $ban['ipend']]);
});
return $ban_list;
}