Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX:BP:11.5] return empty string for renderStatic if there is no content … #3612

Conversation

dkd-friedrich
Copy link
Member

Backport of #3449


What this pr does

fix regression in HighlightResultViewHelper if there is no content to highlight, by checking if getHighlightedContent is a string before passing it to escapeEverythingExceptAllowedTags, otherwise an empty string is returned for the renderStatic method, as before the regression.

How to test

see issue

Fixes: #3448

…content to highlight

Fixes regression in HighlightResultViewHelper if there is no content to highlight,
by checking if getHighlightedContent is a string before passing it to
escapeEverythingExceptAllowedTags, otherwise an empty string is returned
for the renderStatic method, as before the regression.

Ports: TYPO3-Solr#3449
Fixes: TYPO3-Solr#3448
@dkd-friedrich dkd-friedrich merged commit a5b993c into TYPO3-Solr:release-11.5.x Apr 17, 2023
@dkd-friedrich dkd-friedrich deleted the bugfix/release-11.5.x/3448-fix_regression_in_highlight_viewhelper branch April 17, 2023 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants