Wrong escape: &amp instead of &

Started by Simon, February 16, 2022, 08:10:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Simon

Hi,

Lix Levels topic title:
Maps & insights from February 2022 session

Renders correctly in topic view.
Renders correctly in the list of 30 recent topics.
Renders incorrectly in board list that shows recent topic per board.
Renders incorrectly in last-post display in forum stats.

The wrong rendering is:
Maps &amp insights from Fe... on 2022-02-15, 20:01 UTC

Ampersand is wrongly escaped. Here is the raw HTML of that link in the recent-post line in the board list:

<p><strong>Last post</strong> by
<a href="https://www.lemmingsforums.net/index.php?action=profile;u=4">Simon</a>
<br> in
<a href="https://www.lemmingsforums.net/index.php?topic=5940.msg95604#new"
title="Maps &amp; insights from February 2022 session">
Maps &amp;amp insights from Fe...</a>
<br> on 2022-02-15, 20:01 UTC</p>


Within this HTML, we see:
Maps &amp;amp insights from Fe...

Expected instead in the HTML:
Maps &amp; insights from Fe...

Probably bug in the forum software. Is custom fix worth it? Is upstream report worth it? >_>

-- Simon

Dominator_101

To me this looks like a case of double escaping, though I'm not sure where the second semi-colon would've gone.