Lemmings Forums

Site Boards => Site Discussion => Topic started by: Simon on February 16, 2022, 08:10:05 PM

Title: Wrong escape: &amp instead of &
Post by: Simon on February 16, 2022, 08:10:05 PM
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
Title: Re: Wrong escape: &amp;amp instead of &amp;
Post by: Dominator_101 on February 17, 2022, 01:42:59 PM
To me this looks like a case of double escaping, though I'm not sure where the second semi-colon would've gone.