Bug #56262
closedIndexed search makes search result Title wrong - htmlspecialchars
100%
Description
Indexed search has error during creation item_title field.
There is an error in SearchController:
in method 'compileSingleResultRow' (line 349) is called 'htmlspecialchars' function ($title field) and then again in 'linkPage' method (line 1186) when returning a tag with the title performing same function again, what makes mess.
Example:
First time performing 'htmlspecialchars' makes from this string Preisverleihung und Preisträger & "2"013 -> Preisverleihung und Preisträger & "2"013 and second performing same method makes this -> Preisverleihung und Preisträger & "2"013 what can't be returned in normal string in FE.
My patch was just to remove line 349 from 'compileSingleResultRow' method:
$title = htmlspecialchars($title);
and it's gonna make nice special character in Title field.
P.S. I attached 2 picture showing search results before and after patch.
Files