Koha/Koha/Middleware
David Cook 87c14e07d6
Bug 24538: Handle Net::Netmask parser errors
This patch switches from the new() to new2() constructor,
which will return an undef value when it fails to parse a value.

This patch warns on parser failures, but otherwise silently drops
the invalid value, and returns objects for any valid input it can parse.
This way one mistake won't disable the whole feature.

To test:
1. Run the unit test t/Koha/Middlware/RealIP.t

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-02-20 08:40:52 +00:00
..
RealIP.pm Bug 24538: Handle Net::Netmask parser errors 2020-02-20 08:40:52 +00:00
SetEnv.pm Bug 18674: Allow TZ SetEnv for plack 2018-04-11 16:44:14 -03:00