From fa517835b688184455c6942ecac466b8e17f9ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=94=E8=90=BD?= <45323514+BigCoke233@users.noreply.github.com> Date: Sat, 30 Mar 2019 16:17:46 +0800 Subject: Add files via upload --- includes/post-content.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/post-content.php b/includes/post-content.php index c2f1a12..b60b52e 100644 --- a/includes/post-content.php +++ b/includes/post-content.php @@ -1,6 +1,8 @@ /s','${4}',$this->content); + $content = preg_replace('//s','',$this->content); + $content = preg_replace('/
/s','
',$this->content);
 	
 	//短代码(无参数)
 	$reg = '/\[scode\](.*?)\[\/scode\]/s';
-- 
cgit v1.2.3