relevanssi icon indicating copy to clipboard operation
relevanssi copied to clipboard

Truncate long searches

Open leedxw opened this issue 3 months ago • 1 comments

We're seeing excessively long strings of characters causing 30 second timeouts

PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/html/wp-content/plugins/relevanssi-premium/premium/class-relevanssi-spellcorrector.php on line 108" while reading response header from upstream, client: 10.0.1.113, server: _ request: "GET /?s=%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%97%E0%B8%B5%E0%B9%88+40+%E0%B8%88%E0%B8%B2%E0%B8%81+40%0D%0A40.+%E0%B8%97%E0%B9%88%E0%B8%B2%E0%B8%99%E0%B8%84%E0%B8...

is there a setting that would let us set a maximum search length, and either reject or truncate it.

leedxw avatar Sep 22 '25 10:09 leedxw