From 8d3adf194df1e63703cfdd141df25fdd9571a2ae Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Fri, 6 Dec 2024 17:55:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/template/syzoj/problem.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/template/syzoj/problem.php b/web/template/syzoj/problem.php index 0e3d8ce..c61d6b3 100644 --- a/web/template/syzoj/problem.php +++ b/web/template/syzoj/problem.php @@ -122,7 +122,8 @@ if ($pr_flag) { function trans_md($str) { $s = $str; - if (strpos($s, "class='md") !== false) // 没找到,那就加上 + if (strpos($s, "class='md") === false && + strpos($s, "class=\"md") === false) // 没找到,那就加上 $s = "" . $s . ""; $s = bbcode_to_html($s); return $s;