Commit 5064f55a by Scott

Allow IPv6 on IP activity page

parent fb82b735
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
$ip=qa_request_part(1); // picked up from qa-page.php $ip=qa_request_part(1); // picked up from qa-page.php
if (long2ip(ip2long($ip))!==$ip) if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4|FILTER_FLAG_IPV6) === false)
return include QA_INCLUDE_DIR.'qa-page-not-found.php'; return include QA_INCLUDE_DIR.'qa-page-not-found.php';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment