From 6f71c6d9501ac740ceab4266d8b7ea1772dc5346 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 15 Feb 2021 19:18:49 +0000 Subject: fix detection of multiline codeblocks after recent change to bbcode() --- include/bbcode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/bbcode.php b/include/bbcode.php index dfc64f814..6bb33671e 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -914,14 +914,14 @@ function bb_code_unprotect_sub($match) { } function bb_code($match) { - if(strpos($match[0], "
")) + if(strpos($match[0], PHP_EOL)) return '
' . bb_code_protect(trim($match[1])) . '
'; else return '' . bb_code_protect(trim($match[1])) . ''; } function bb_code_options($match) { - if(strpos($match[0], "
")) { + if(strpos($match[0], PHP_EOL)) { $class = ""; $pre = true; } else { -- cgit v1.2.3