post.php: limit post history check to IPv4 as a workaround to #49

This commit is contained in:
Zankaria 2024-11-13 19:43:15 +01:00
parent c8d84afa07
commit 7ad17bbee1

View file

@ -932,7 +932,7 @@ function handle_post()
// Check if banned
checkBan($board['uri']);
if ($config['op_require_history'] && $post['op']) {
if ($config['op_require_history'] && $post['op'] && !isIPv6()) {
$has_any = has_any_history($_SERVER['REMOTE_ADDR']);
if (!$has_any) {
error($config['error']['opnohistory']);