Project

General

Profile

Actions

Bug #56262

closed

Indexed search makes search result Title wrong - htmlspecialchars

Added by Dragan Tomic about 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Indexed Search
Target version:
Start date:
2014-02-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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

Actions

Also available in: Atom PDF