Opened 7 months ago

Last modified 2 months ago

#13720 pending defect (assigned)

WEB: link URLs are garbled in Touche's compatibility page

Reported by: JKingweb Owned by: Thunderforge
Priority: low Component: Web
Version: Keywords:
Cc: Game: Touché: The Adventures of the Fifth Musketeer


The lowercase e with acute accent seems somehow to be completely mangling the game's ScummVM wiki and Wikipedia link URLs on its compatibility page. They are correct as far as "Touch" and then the "Support Level" section's data is spewed into the URL from there before it resumes with the title.

This has been observed in Firefox 102 for Android as well as Vivaldi 3.5 forinux, if it matters. It seems to be a server-side templating error to me, though.


Change History (3)

comment:1 by tag2015, 3 months ago

Component: DocumentationWeb
Owner: set to Thunderforge
Resolution: assigned
Status: newpending
Summary: link URLs are garbled in Touche's compatibility pageWEB: link URLs are garbled in Touche's compatibility page

The encoding for the "é" character is %C3%A9 , "A9" is still present in the garbled entries so I suppose that whatever is used to generate the page wrongly replaces %C3% with that string (the page is generated from a spreadsheet and that looks like a cell coordinate)

comment:2 by Thunderforge, 2 months ago

The data looks right in the YAML file and generated database, and a preliminary search shows it's loaded properly in the backend when sent to the frontend. I think it's one of the Smarty filters that is misbehaving.

comment:3 by Thunderforge, 2 months ago

Turns out that it's not Smarty on it's own, but rather HTMLPurifier. Commenting out this line fixes the hyperlink. However, the purpose of that is to prevent XSS, so I'm reluctant to do that.


  • HTMLPurifier converts the é to A9
  • For reasons I don't undersatnd, Smarty converts that to the value of %good% in whatever the current language is
Note: See TracTickets for help on using tickets.