Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Bigguy on July 22, 2021, 05:36:19 PM

Title: Php tag 2.1 possible bug
Post by: Bigguy on July 22, 2021, 05:36:19 PM
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. ??
Title: Re: Php tag 2.1 possible bug
Post by: skb on July 22, 2021, 05:58:39 PM
Nope. Could not replicate.
Title: Re: Php tag 2.1 possible bug
Post by: Steve on July 22, 2021, 07:19:10 PM
@ 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.
Title: Re: Php tag 2.1 possible bug
Post by: live627 on July 22, 2021, 07:53:12 PM
Try it with the attached file (it goes in .\Themes\default\scripts)
Title: Re: Php tag 2.1 possible bug
Post by: Sesquipedalian on July 22, 2021, 08:16:29 PM
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.
Title: Re: Php tag 2.1 possible bug
Post by: 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.
Title: Re: Php tag 2.1 possible bug
Post by: Sesquipedalian on July 22, 2021, 10:16:01 PM
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. :)
Title: Re: Php tag 2.1 possible bug
Post by: skb on July 22, 2021, 11:27:59 PM
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.
Title: Re: Php tag 2.1 possible bug
Post by: Bigguy on July 23, 2021, 05:55:39 AM
@Steve Yes RC4. Glad it was able to be reproduced. I will try this file as well sometime today. Thank you.
Title: Re: Php tag 2.1 possible bug
Post by: Bigguy on July 23, 2021, 08:17:46 AM
That file works great for me, thank you.