New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ticket/15875] Fix PHP fatal error on BBCode parsing #5448

Merged
merged 1 commit into from Nov 17, 2018
Jump to file or symbol
Failed to load files and symbols.
+11 −2
Diff settings

Always

Just for now

Copy path View file
@@ -35,9 +35,18 @@ class bbcode
/**
* Constructor
* Init bbcode cache entries if bitfield is specified
*/
function __construct($bitfield = '')
{
$this->bbcode_set_bitfield($bitfield);
}
/**
* Init bbcode cache entries if bitfield is specified
*
* @param string $bbcode_bitfield The bbcode bitfield
*/
function bbcode_set_bitfield($bitfield = '')
{
if ($bitfield)
{
@@ -627,7 +627,7 @@ function generate_text_for_display($text, $uid, $bitfield, $flags, $censor_text
}
else
{
$bbcode->bbcode($bitfield);
$bbcode->bbcode_set_bitfield($bitfield);
}
$bbcode->bbcode_second_pass($text, $uid);
ProTip! Use n and p to navigate between commits in a pull request.