Commit 3ce86ab3 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1200 Use Request::HEX_EXTENDED to filter bad IP addresses.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 2a1bc61c
...@@ -696,7 +696,7 @@ class Request { ...@@ -696,7 +696,7 @@ class Request {
static private function filterIP($input) { static private function filterIP($input) {
$in_addr = @inet_pton($input); $in_addr = @inet_pton($input);
if ($in_addr === false) { if ($in_addr === false) {
return 'badip-' . self::filterEvilInput($input, self::NUMBERSDOT_ONLY); return 'badip-' . self::filterEvilInput($input, self::HEX_EXTENDED);
} }
return inet_ntop($in_addr); return inet_ntop($in_addr);
} }
......
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