From b6d9114e8eae86b5cbdd774d7a5034df4a9f1d9e Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Sun, 2 Jan 2022 20:02:01 +0300 Subject: [PATCH] - fix escapeTags() failed in PHP 8.1 --- src/includes/common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/includes/common.php b/src/includes/common.php index 9051ea2..ecb1e9a 100644 --- a/src/includes/common.php +++ b/src/includes/common.php @@ -221,6 +221,9 @@ function url_dir($url, $onlyPath = 1) function escapeTags($s) { + if ($s == '') { + return ''; + } $c1 = chr(1); $c2 = chr(2); $s = preg_replace("~([\s\S]*?)~i", "${c1}b${c2}\$1${c1}/b${c2}", $s);