summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_search_form.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-10-21 15:53:16 -0400
committerLukas Fleischer <archlinux@cryptocrack.de>2012-10-22 12:33:13 +0200
commit43a69e7127c65f2651a61300d3e32bf6f89a2595 (patch)
treecb0869c747d12fa8418a536878d7b6aaf5eeb3f9 /web/template/pkg_search_form.php
parent5222bf09320ebc1cd5da799970fcc0d2dd32bb3f (diff)
downloadaurweb-43a69e7127c65f2651a61300d3e32bf6f89a2595.tar.xz
aurjson.class.php: Limit number of RPC results
With no limit to the number of results, memory_limit set to 32M can easily be exceeded for searches that have a large number of results. This results in an HTTP error 500 for those queries. Limit results to an amount set within config.inc.php to avoid exceeding memory_limit. Introduce new JSON error code for when the result limit is hit. Fixes FS#31849 Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_search_form.php')
0 files changed, 0 insertions, 0 deletions