Steffen
Well-known member
- Affected version
- 2.0.12
Original bug report (or "complaint") here in german: https://www.computerbase.de/forum/t...mputerbase-forum-ist-da.1801339/post-22008449
I've tried to come up with a more generic test-case. Consider the following BB code:
This is what it looks like when you toggle the editor mode or submit the post:
Some users prefer to use the plaintext editor when writing posts. In this case, typos can affect BB code tags. Let's assume that the user mistyped the first closing "URL" BB code as [/UL] (an "R" is missing):
This is what it looks like when you now submit the post (or toggle the editor mode):
And this is the BB code when you toggle the editor mode back:
A tiny typo in the first line has caused major parts of the message to be changed. Line breaks have been removed and plaintext has been turned into links. It would require a lot of effort from the user to fix this well-meant but unfortunately badly-behaving auto-correction of broken BB code. If XenForo had not touched the BB Code, then all the user would have to do is add the missing "R".
I have not dug deeper into what's actually going on that causes this issue. Maybe it has something to do with auto-closing BB code tags that aren't closed explicitly. I fear that fixing this issue could require more involved changes to the XenForo codebase. It would therefore probably be unreasonable to expect a short-term fix. But I wanted to bring this issue to your attention nevertheless.
I've tried to come up with a more generic test-case. Consider the following BB code:
Code:
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
This is what it looks like when you toggle the editor mode or submit the post:
Some users prefer to use the plaintext editor when writing posts. In this case, typos can affect BB code tags. Let's assume that the user mistyped the first closing "URL" BB code as [/UL] (an "R" is missing):
Code:
- [URL='https://xenforo.com/']Link[/UL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
- [URL='https://xenforo.com/']Link[/URL] Text
Text
Text
This is what it looks like when you now submit the post (or toggle the editor mode):
And this is the BB code when you toggle the editor mode back:
A tiny typo in the first line has caused major parts of the message to be changed. Line breaks have been removed and plaintext has been turned into links. It would require a lot of effort from the user to fix this well-meant but unfortunately badly-behaving auto-correction of broken BB code. If XenForo had not touched the BB Code, then all the user would have to do is add the missing "R".
I have not dug deeper into what's actually going on that causes this issue. Maybe it has something to do with auto-closing BB code tags that aren't closed explicitly. I fear that fixing this issue could require more involved changes to the XenForo codebase. It would therefore probably be unreasonable to expect a short-term fix. But I wanted to bring this issue to your attention nevertheless.
Last edited: