don't die if [/code] comes before [code]
This commit is contained in:
parent
f0fa99ed10
commit
1cd4f867b5
@ -142,7 +142,7 @@ class BBCode extends FormatterExtension {
|
|||||||
$start = strpos($text, "[code]");
|
$start = strpos($text, "[code]");
|
||||||
if($start === false) break;
|
if($start === false) break;
|
||||||
|
|
||||||
$end = strpos($text, "[/code]");
|
$end = strpos($text, "[/code]", $start);
|
||||||
if($end === false) break;
|
if($end === false) break;
|
||||||
|
|
||||||
$beginning = substr($text, 0, $start);
|
$beginning = substr($text, 0, $start);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user