https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43258

--- Comment #5 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 203421
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203421&action=edit
Bug 43258: (follow-up) Use Koha::IP in opac-shelves.pl

Replace the inline regex IP range checks in opac-shelves.pl with
Koha::IP->is_ip_in_range(). Demonstrates the intended usage pattern.

Test plan:
1. Apply patch
2. Enable OpacSuppression
3. Find your IP: ktd_proxy --show-ip
4. Set OpacSuppressionByIPRange to match it (e.g. '172.18.')
5. View a public list containing suppressed records in the OPAC
=> SUCCESS: All records (including suppressed) are visible
6. Set OpacSuppressionByIPRange to a non-matching range (e.g. '10.99.')
7. Reload the list
=> SUCCESS: Suppressed records are hidden, count is correct
8. Sign off :-D

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to