From d50381c9c67e097cf3eae73f0311191acca8f0a5 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 18 Feb 2021 20:36:56 +0000 Subject: [PATCH] fix summary regex after recent bbcode chane --- boot.php | 2 +- include/bbcode.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index 71a946b9a..de3345c70 100644 --- a/boot.php +++ b/boot.php @@ -686,7 +686,7 @@ function startup() { error_reporting(E_ALL & ~E_NOTICE); if (version_compare(PHP_VERSION, '8.0.0') >= 0) { - error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE); + error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE); } // Some hosting providers block/disable this diff --git a/include/bbcode.php b/include/bbcode.php index 2832a7627..4580516a5 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1417,7 +1417,7 @@ function bbcode($Text, $options = []) { if(strpos($Text,'[/summary]') !== false) { - $Text = preg_replace_callback("/^(.*?)\[summary\](.*?)\[\/summary\](.*?)$/ism", 'bb_summary', $Text); + $Text = preg_replace_callback("/^(.*?)\[summary\](.*?)\[\/summary\](.*?)$/is", 'bb_summary', $Text); } // Check for [spoiler] text