My-Little-Forum / mylittleforum

A simple PHP and MySQL based internet forum that displays the messages in classical threaded view (tree structure)
GNU General Public License v3.0
124 stars 48 forks source link

Deduplication of the banlists #727

Closed auge8472 closed 3 months ago

auge8472 commented 3 months ago

The banlists (IPs, user agents and badwords) are organised in entries in a text field, which are splitted only by a linebreak. The processing code for the banlists orders the entries of a list with the PHP function natcasesort before storing them in the database which generates lists one can easy search in with scrolling the lists. Doing this, I came across the fact, that the lists can contain doubled entries (why ever) and that this is not handled by the processing code.

This should be solvable with the use of the PHP function array_unique.

See also the description of #726.