Author Topic: Wrong escape: &amp instead of &  (Read 3680 times)

0 Members and 1 Guest are viewing this topic.

Offline Simon

  • Administrator
  • Posts: 3876
    • View Profile
    • Lix
Wrong escape: &amp instead of &
« 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:

Code: [Select]
<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
« Last Edit: February 16, 2022, 08:22:13 PM by Simon »

Offline Dominator_101

  • Posts: 15
    • View Profile
Re: Wrong escape: &amp;amp instead of &amp;
« Reply #1 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.