htmlentities() breaks UTF-8 characters in Tickets listing

261
Defect
Trupik
-
2.3.5
2.3.4
Tickets
Fixed
Normal
Normal
5 years ago
3 years ago
0

Description

What did you do to cause this? Created a Ticket with unicode characters in the Summary, like this one.

What page were you on? Ticket listing.

What PHP and MySQL versions do you run? dev-lang/php-5.3.13 dev-db/mysql-5.1.62-r1

Describe the defect: The unicode characters in Tickets listing are broken into multiple separate characters, where they really should be only one unescaped UTF-8 character. I have provided euro currency symbol € to the summary of this ticket to demonstrate.

Proposed solution: (has been tested and is working great) in file system/controllers/tickets.php on line 270: change htmlentities() to htmlspecialchars()

Ticket History

5 years and 5 months ago by Jack

  • Changed Status from New to Accepted

5 years and 5 months ago by Jack

  • Changed Summary from htmlentities() breaks UTF-8 characters in Tickets listing € to htmlentities() breaks UTF-8 characters in Tickets listing
  • Closed ticket as Fixed

Thanks for reporting this, never would have noticed this.