From 295434f90d29c6d9dd28127a08471158c6d10474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Sun, 5 Dec 2021 22:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=8F=AA=E7=9C=8B?= =?UTF-8?q?=E5=A4=A7=E5=9B=BE=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=AD=A3=E6=96=87?= =?UTF-8?q?=E6=91=98=E8=A6=81=E5=87=BA=E7=8E=B0=20JS=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/function_blog.php | 2 +- upload/source/function/function_discuzcode.php | 6 +++--- upload/source/module/forum/forum_viewthread.php | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/upload/source/function/function_blog.php b/upload/source/function/function_blog.php index 80e63b046..e59ed2e80 100644 --- a/upload/source/function/function_blog.php +++ b/upload/source/function/function_blog.php @@ -327,6 +327,6 @@ function blog_flash($url, $type='') { } $type = fileext($url); $randomid = random(3); - return '
'; + return ''; } ?> \ No newline at end of file diff --git a/upload/source/function/function_discuzcode.php b/upload/source/function/function_discuzcode.php index b8d0e1a29..1d827a66e 100644 --- a/upload/source/function/function_discuzcode.php +++ b/upload/source/function/function_discuzcode.php @@ -447,7 +447,7 @@ function parseaudio($url, $width = 400) { } $type = fileext($url); $randomid = random(3); - return '
'; + return ''; } function parsemedia($params, $url) { @@ -490,7 +490,7 @@ function parsemedia($params, $url) { return parseaudio($url, $width); } else if (in_array($type, $video)) { $randomid = random(3); - return '
'; + return ''; } else { return ''.$url.''; } @@ -563,7 +563,7 @@ function parseflv($url, $width = 0, $height = 0) { $player_iframe = $iframe ? "\"\"" : ''; $player_flv = $flv ? "AC_FL_RunContent('width', '$width', 'height', '$height', 'allowNetworking', 'internal', 'allowScriptAccess', 'never', 'src', '$flv', 'quality', 'high', 'bgcolor', '#ffffff', 'wmode', 'transparent', 'allowfullscreen', 'true')" : ''; $player = (!empty($player_iframe) && !empty($player_flv)) ? "detectHtml5Support() ? $player_iframe : $player_flv" : (empty($player_iframe) ? $player_flv : $player_iframe); - return ''; + return ''; } } else { return FALSE; diff --git a/upload/source/module/forum/forum_viewthread.php b/upload/source/module/forum/forum_viewthread.php index b43f2d650..81126e9d7 100644 --- a/upload/source/module/forum/forum_viewthread.php +++ b/upload/source/module/forum/forum_viewthread.php @@ -1002,6 +1002,7 @@ if(empty($_GET['viewpid'])) { $_G['widthauto'] = 0; $sufix = '_album'; $post = &$postlist[$_G['forum_firstpid']]; + // 暂不确认对于 JS 类内容是否都需要添加 ignore_js_op 标签供 _relatedlinks 和只看大图模式正文摘要过滤用 $post['message'] = cutstr(strip_tags(preg_replace('/(.*<\/ignore_js_op>)/is', '', $post['message'])), 200); require_once libfile('thread/album', 'include'); } -- Gitee