Php tag 2.1 possible bug

Started by Bigguy, July 22, 2021, 05:36:19 PM

Previous topic - Next topic

Bigguy

The other day I was copying and pasting a block of code into a post. So I hit the code tag button and the purple box came up and I pasted my block of php code in there. Hit post and every line of the block had code tags. Does this happen for others. ??

skb


SMF 2.1.4 / TP 2.2.2

Steve

@ Bigguy ... RC4?

@ skb ... your sig says RC3 so is that what you tested his problem on?

Edit: @ skb ... nm ... just clicked your forum link and I see you're on RC4.
DO NOT pm me for support!

live627

Try it with the attached file (it goes in .\Themes\default\scripts)

Sesquipedalian

I was able to reproduce this bug when pasting text that used Windows line endings (CRLF), but not when pasting text that used Unix line endings (LF).

Quote from: live627 on July 22, 2021, 07:53:12 PM
Try it with the attached file (it goes in .\Themes\default\scripts)

No difference for this issue in my tests just now.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

live627

I have multiple copies and that one  may not have the fix. Attached another which I believe has the fix.

Sesquipedalian

Quote from: live627 on July 22, 2021, 09:26:08 PM
I have multiple copies and that one  may not have the fix. Attached another which I believe has the fix.

That worked in my tests. :)
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

skb

Quote from: Steve on July 22, 2021, 07:19:10 PM
@ skb ... your sig says RC3 so is that what you tested his problem on?

Edit: @ skb ... nm ... just clicked your forum link and I see you're on RC4.

Yup. Sorry, my sig needs an upgrade too. Headed that way now.

SMF 2.1.4 / TP 2.2.2

Bigguy

@Steve Yes RC4. Glad it was able to be reproduced. I will try this file as well sometime today. Thank you.

Bigguy

That file works great for me, thank you.

Advertisement: