From 1aa4c0304838e31e7b7c3d66b8b07604894133be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=96=E4=B8=AD=E6=B2=89?= <341936031@qq.com> Date: Thu, 23 Feb 2023 11:49:25 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=89=88=E6=97=A5=E5=BF=97=E5=8F=91=E5=B8=83=E4=B8=8D=E6=8D=A2?= =?UTF-8?q?=E8=88=AA=E7=9A=84=E4=B8=B4=E6=97=B6=E8=A7=A3=E5=86=B3=E6=96=B9?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 湖中沉 <341936031@qq.com> --- upload/source/function/function_blog.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/upload/source/function/function_blog.php b/upload/source/function/function_blog.php index 2701fb4c9..992e30d71 100644 --- a/upload/source/function/function_blog.php +++ b/upload/source/function/function_blog.php @@ -64,6 +64,9 @@ function blog_post($POST, $olds=array()) { $POST['tag'] = getstr($POST['tag'], 500); $POST['tag'] = censor($POST['tag']); + if(defined("IN_MOBILE")){ + $POST['message'] = nl2br($POST['message']); + } $POST['message'] = preg_replace("/\\<\/div\>/i", '', $POST['message']); $POST['message'] = checkhtml($POST['message']); $POST['message'] = getstr($POST['message'], 0, 0, 0, 0, 1); -- Gitee