22 Oct
2012
22 Oct
'12
4:55 p.m.
On Sun, Oct 21, 2012 at 03:53:16PM -0400, canyonknight wrote:
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> --- web/lib/aurjson.class.php | 22 +++++++++++++++++----- web/lib/config.inc.php.proto | 4 ++++ 2 files changed, 21 insertions(+), 5 deletions(-)
Applied, thanks!
[...]