From 664e6b76829788dcd89d7b62f565087c747b7288 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Sat, 25 Jan 2025 18:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8Areinfo=E6=94=BE=E5=85=A5=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=9D=97=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/reinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/reinfo.php b/web/reinfo.php index 3de46e0..4c9e260 100644 --- a/web/reinfo.php +++ b/web/reinfo.php @@ -93,7 +93,7 @@ if($ok){ else if(strpos($row['error'],"php")!==false) $view_reinfo = "error2"; else if(strpos($row['error'],"PASS")!==false) $view_reinfo = "error3"; else if($OJ_SHOW_DIFF && $row && ($ok||$isRE) && ($OJ_TEST_RUN||is_valid($row['error'])||$ok)){ - $view_reinfo = htmlentities(str_replace("\n\r","\n",$row['error']),ENT_QUOTES,"UTF-8"); + $view_reinfo = "```" . htmlentities(str_replace("\n\r","\n",$row['error']),ENT_QUOTES,"UTF-8"). "```"; $view_reinfo .="
$MSG_MARK:$mark";