Recent

Author Topic: Forum Code Tags Broken?  (Read 7726 times)

lainz

  • Hero Member
  • *****
  • Posts: 4473
    • https://lainz.github.io/
Forum Code Tags Broken?
« on: December 29, 2021, 12:56:29 am »
Single quotes are wrongly displayed

Code: Pascal  [Select][+][-]
  1.   // !!cannot use TDOMElement.SetAttributeNode because it will free old attribute
  2.   OldAttr := Elem.Attributes.SetNamedItem(Attr);
  3.   if Assigned(OldAttr) then
  4.   begin
  5.     OldAttr.Free;
  6.     FatalError('Duplicate attribute', FName.Length);
  7.   end;

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2023
  • Former Delphi 1-7, 10.2 user
Re: Forum Code Tags Broken?
« Reply #1 on: December 29, 2021, 01:23:05 am »
I thought it was my memory that was broken  :-[

Thanks for the confirmation that it's the Forum!

Bi0T1N

  • Jr. Member
  • **
  • Posts: 85
Re: Forum Code Tags Broken?
« Reply #2 on: December 30, 2021, 03:33:06 pm »
But it broke recently but definitely before the server maintenance. Can this be related to the update of the forum software?

Kays

  • Hero Member
  • *****
  • Posts: 576
  • Whasup!?
    • KaiBurghardt.de
Re: Forum code tags broke?
« Reply #3 on: December 30, 2021, 10:43:45 pm »
Interestingly, it only concerns [️‍code] tags specifying a programming language, so I suppose it’s the fancy colorful syntax highlighter’s fault.
Code: [Select]
'
Yours Sincerely
Kai Burghardt

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: Forum Code Tags Broken?
« Reply #4 on: December 30, 2021, 11:47:03 pm »
I informed Marc on the fpc-devel ML.

Bart

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9908
  • Debugger - SynEdit - and more
    • wiki
Re: Forum Code Tags Broken?
« Reply #5 on: December 31, 2021, 01:19:12 am »
Marc already is aware of it.

Bi0T1N

  • Jr. Member
  • **
  • Posts: 85
Re: Forum Code Tags Broken?
« Reply #6 on: December 31, 2021, 04:02:59 pm »
It also seems the crying smiley
Code: [Select]
:'( is broken/not resolved as reported here.

 :'(

Could be related to the following fix
Code: [Select]
September 2021
-------------------------------------------------------------------------------
! Fix handling 2x-encoded entities in $ent_check/$smcFunc['htmlspecialchars']
from the changelog.
« Last Edit: December 31, 2021, 04:07:13 pm by Bi0T1N »

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Re: Forum Code Tags Broken?
« Reply #7 on: January 03, 2022, 09:39:32 am »
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Re: Forum Code Tags Broken?
« Reply #8 on: January 05, 2022, 08:37:28 am »
It's fixed, thanks to shawnb61, SMF developer who was kind to look into the mod code

Marc
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2023
  • Former Delphi 1-7, 10.2 user
Re: Forum Code Tags Broken?
« Reply #9 on: January 06, 2022, 01:50:09 am »
Thanks Marc.

 

TinyPortal © 2005-2018