Issue Bug Closed

#14455html entities getting borked at rendering

Franois Prichon 12/16/04, 16:32 updated 10/02/18, 12:32

Description

Html entities may be stored in the field ‘fulltextdata’ of the indexf_fulltext table. They will be parsed by some htmlspecialchars() function before being rendered in the html page.
ie: we store some à in mysql and it become à

I resolved the problem with this ugly hack :
In class.indexer.php (near line 1300), replace
$fields = array(
‘phash’ => $this->hash[‘phash’],
‘fulltextdata’ => implode($this->contentParts,’ ‘)
);
by
$fields = array(
‘phash’ => $this->hash[‘phash’],
‘fulltextdata’ => html_entity_decode(implode($this->contentParts,’ ‘), ENT_QUOTES)
);
(issue imported from #M618)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 4

  1. Ernesto Baschny commented 11/10/05, 19:19

    Note that html_entity_decode() is only available in PHP >= 4.3.0. So I would be careful to use this.

  2. Martin Kutschker commented 04/29/06, 21:06

    Is this still an issue? Quite some time has passed since the bug has been submitted.

  3. Christian Kuhn commented 05/30/09, 21:15

    Resolved, no change required after three years without requested feedback.

    Please reopen if this issue still exists.

  4. Benni Mack changed status Resolved Closed 10/02/18, 12:32