diff --git a/Classes/Domain/Search/Statistics/StatisticsWriterProcessor.php b/Classes/Domain/Search/Statistics/StatisticsWriterProcessor.php index 7fa44232b9..c352d303b7 100644 --- a/Classes/Domain/Search/Statistics/StatisticsWriterProcessor.php +++ b/Classes/Domain/Search/Statistics/StatisticsWriterProcessor.php @@ -123,6 +123,8 @@ protected function getProcessedKeywords( ): string { $keywords = $query->getQuery(); $keywords = $this->sanitizeString($keywords); + // Ensure string does not exceed database field length + $keywords = substr($keywords, 0, 128); if ($lowerCaseQuery) { $keywords = mb_strtolower($keywords); }