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);