Protect IPs in public moderation logs.

As reported, IPv6 addresses were not properly hidden in the public
facing moderation logs. This commit filters both IPv4 and IPv6
addresses.

We broke out into a separate function so that it can be tested with
the test suite.

A rudimentary test has been added to test the newly added
protect_ip($entry) function.
This commit is contained in:
Dedushka 2021-01-17 13:03:17 -05:00
parent f030ce8215
commit a037d8b5e0
2 changed files with 626 additions and 588 deletions

File diff suppressed because it is too large Load diff