Do not allow more than 20 terms in search queries
commit0f48341ed67624f8bf113737eac0ba5b989133b3
authorLukas Fleischer <lfleischer@archlinux.org>
Fri, 22 May 2015 11:29:59 +0000 (22 13:29 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Fri, 22 May 2015 15:09:25 +0000 (22 17:09 +0200)
treed9ab7053035503f9b38b5e64ddec00f45a207dbc
parent20b838a90c5874c11cb68d3ca0bf7cc3bf3c0180
Do not allow more than 20 terms in search queries

Specifying a huge number of search terms currently results in complex
SQL queries. In practice, queries with more than 20 terms are rarely
needed. Ignore everything apart from the first 20 keywords to prevent
from potential abuse.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
web/lib/pkgfuncs.inc.php