2.0.11 to 2.0.12 Added new code that leaves a lot of messages empty.

Started by Vincenz0, November 02, 2016, 06:27:56 AM

Previous topic - Next topic

Vincenz0

Hello devs.

With the latest patch you guys added the following code to the Subs-Post.php file:

// Remove empty bbc.
$message = preg_replace('~\[([^\]=\s]+)[^\]]*\](?' . '>\s|(?R))*?\[/\1\]\s?~i', '', $message);


My preg knowledge is not enough to know what exactly this does but it is creating problems for us.

If a user uses too many BBC codes or something the whole message gets truncated into nothing and they get an error that the message body is empty, also when clicking Preview, the preview would be empty.

For my forum I just commented out this whole line and it solved our problems.
Any idea what is going on?

Here is a test code to reproduce it:
http: // paste . ubuntu . com/23415521/
(remove spaces)

I tried adding the above code in a CODE bracket on this forum but it gave me the same error:

Kindred

please do not double post the same message.

If you read the other thread that you posted in  you would know that we are aware of the issue and are working on a patch to fix it.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: