#23800 closed enhancement (fixed)
Filter Comment Blacklist, to delete duplicated terms
| Reported by: | shadowhck | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Comments | Version: | |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
Description
Hi,
In Comment Blacklist, when I save terms, duplicates are not eliminated.
Would be good if the function array_unique would remove these duplicate terms.
Attachments (1)
Change History (7)
#3
@
12 years ago
The solution might be similar to [22255] (explode(), array_filter() & array_unique(), implode()).
This should be applied to "Comment Moderation" list as well for consistency.
#4
@
12 years ago
- Keywords has-patch added; needs-patch removed
I added 23800.diff patch that should take care of this by explode(), array_filter(), array_unique() and finally implode().
Version 0, edited 12 years ago by
(next)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The comment blacklist is currently saved as a string, not an array, so this would be somewhat more involved than might first appear.