Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Upgrade Notes

## 3.0.2
[BUGFIX] QueryCleanTermFilter str_replace fallback

## 3.0.1
- [LICENSE] Dual-License with GPL and Dachcom Commercial License (DCL) added
[LICENSE] Dual-License with GPL and Dachcom Commercial License (DCL) added

## Migrating from Version 2.x to Version 3.0.0

Expand Down
4 changes: 3 additions & 1 deletion src/OutputChannel/Modifier/Filter/QueryCleanTermFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class QueryCleanTermFilter implements OutputChannelModifierFilterInterface
{
public function dispatchFilter(OutputChannelAllocatorInterface $outputChannelAllocator, array $options): string
{
$rawTerm = $options['raw_term'] ?? '';

return trim(
preg_replace(
'|\s{2,}|',
Expand All @@ -29,7 +31,7 @@ public function dispatchFilter(OutputChannelAllocatorInterface $outputChannelAll
' ',
strtolower(
strip_tags(
str_replace("\n", ' ', $options['raw_term'])
str_replace("\n", ' ', $rawTerm)
)
)
)
Expand Down
Loading