Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: mickjav on September 25, 2021, 06:21:01 AM

Title: Board Description
Post by: mickjav on September 25, 2021, 06:21:01 AM
I'm using 2.1 RC4, tested on the default Theme as well as others

When adding a board description on multiply lines it always pusts the decription on one line like

This template contains to following: Login System, Employees List (With Password System), Customers and Contacts.
Plus uses the Style Manager Version 1.02.
designed to give you a leg up  to a full system of your choice.

I get this

This template contains to following: Login System, Employees List (With Password System), Customers and Contacts. Plus uses the Style Manager Version 1.02.Designed to give you a leg up to a full system of your choice.
Title: Re: Board Description
Post by: Shades. on September 25, 2021, 07:44:47 AM
Try using <br> after each sentence. Used to work for me in 2.0 not sure about 2.1.  ;)
Title: Re: Board Description
Post by: Aleksi "Lex" Kilpinen on September 25, 2021, 07:57:46 AM
I'm actually a bit unsure as I haven't tried - but that used to allow some html, which in 2.1 was changed and so only accepts BBC now. So, yeah - <br> or <br /> would have worked before, and actually should not work anymore which is a shame. EDIT: You should be able to use [br].
Title: Re: Board Description
Post by: Arantor on September 25, 2021, 08:10:09 AM
2.0 accepted literally any HTML without sanitisation which was reported as a security vulnerability on a number of occasions especially because non-admins with an admin-grade permission could use it.

2.1 accepts a limited set of bbcode, not the full set normally found in posts.
Title: Re: Board Description
Post by: Aleksi "Lex" Kilpinen on September 25, 2021, 08:27:36 AM
Yeah, don't get me wrong - I do completely understand why it doesn't accept html just like that anymore.
Title: Re: Board Description
Post by: mickjav on September 25, 2021, 08:28:06 AM
Quote from: Aleksi on September 25, 2021, 07:57:46 AMI'm actually a bit unsure as I haven't tried - but that used to allow some html, which in 2.1 was changed and so only accepts BBC now. So, yeah - <br> or <br /> would have worked before, and actually should not work anymore which is a shame. EDIT: You should be able to use [br].

Thanks didn't work just shows  [ br ] where the new line should start.
Title: Re: Board Description
Post by: Aleksi "Lex" Kilpinen on September 25, 2021, 08:29:08 AM
Ah, that kinda sucks and so I support this being a valid bug report - We really should have a way to introduce linebreaks in there.
Title: Re: Board Description
Post by: mickjav on September 25, 2021, 08:32:40 AM
Maybe they can just add [ br ] to the allowed bbcode list?
Title: Re: Board Description
Post by: Aleksi "Lex" Kilpinen on September 25, 2021, 08:40:12 AM
Github Issue 7096 (https://github.com/SimpleMachines/SMF2.1/issues/7096)
Title: Re: Board Description
Post by: Aleksi "Lex" Kilpinen on September 28, 2021, 03:24:48 AM
Fixed by allowing br in https://github.com/SimpleMachines/SMF2.1/pull/7098
Title: Re: Board Description
Post by: mickjav on September 28, 2021, 04:11:45 AM
Quote from: Aleksi on September 28, 2021, 03:24:48 AMFixed by allowing br in https://github.com/SimpleMachines/SMF2.1/pull/7098

Cool thanks ill update when back off holiday
Title: Re: Board Description
Post by: Shades. on September 28, 2021, 06:44:21 PM
Quote from: Aleksi "Lex" Kilpinen on September 28, 2021, 03:24:48 AMFixed by allowing br in https://github.com/SimpleMachines/SMF2.1/pull/7098
Thanks! 8)