Sanitize and limit tags in search to 10 (wincent.dev, c90d6d5)

Remove duplicate tags in search query and limit the total number to 10 to guard against attacks on the database. It is highly unlikely that a search with more than 10 tags would return any results anyway, given that the average number of tags per item is probably well under five.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Extract common tag results code into a partial (wincent.dev, b470ec6)
Add search form to tag search results page (wincent.dev, d828803) →

All snippets