Quote from: http://www.simplemachines.org/community/index.php?topic=408962.0In Subs.php:
if ($message[$pos + 1] == '0' && !in_array($message[$pos - 1], array(';', ' ', "\t", '>')))
if ($message[$pos + 1] == '0' && !in_array($message[$pos - 1], array(';', ' ', "\t", "\n", '>')))
and
$message = substr($message, 0, $pos2) . "\n" . (!empty($matches[0]) && substr($matches[0], -1) == '[' ? '[/li]' : '[/li][/list]') . "\n" . substr($message, $pos2);
$message = substr($message, 0, $pos2) . (!empty($matches[0]) && substr($matches[0], -1) == '[' ? '[/li]' : '[/li][/list]') . substr($message, $pos2);
The first one should fix Brettflan's report, while the second should fix mine.
Problem is the fix for the problem I reported shouldn't break anything because is explicitly for item codes, while the one for Brettflan's bug affects any bbcode, so I'm not 100% sure is doesn't break anything else...if someone would help reviewing and testing them feel free... O:)