Project

General

Profile

Actions

Bug #96082

closed

EXT:indexed_search times out when penetrated with very long search terms

Added by Alexander Köberl almost 3 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2021-11-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
8.0
Tags:
indexed_search
Complexity:
easy
Is Regression:
Sprint Focus:

Description

One of my customers is dabbling in massive system testing. He tested the index search with >1MB long texts as searchword. Then the search runs into a timeout and outputs "oooops error" what is not very beautiful...

The easiest way to prevent this is to limit the length of the search word in the SearchController. (and limiting the text field with maxlength which does not necessarily prevent evil testers from triggering this error)

For example

if (mb_strlen($searchWord) > 100) {
    return;
}

A feature could be to set the max sword length in typoscript

Actions

Also available in: Atom PDF