From fdcbd1f980b3478e3ef4dcde3c788425d38fd965 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Fri, 6 Dec 2024 16:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=BB=E6=AD=A2html=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/admin/problem_add.php | 10 +++++----- web/admin/problem_add_page.php | 9 ++++----- web/admin/problem_edit.php | 18 +++++++++--------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/web/admin/problem_add.php b/web/admin/problem_add.php index 31c0deb..ca9af06 100644 --- a/web/admin/problem_add.php +++ b/web/admin/problem_add.php @@ -13,7 +13,7 @@ require_once ("../include/problem.php"); // contest_id $title = $_POST['title']; // $title = str_replace(",", ",", $title); -$title = html_entity_decode($title, ENT_QUOTES, 'UTF-8'); +// $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8'); $time_limit = $_POST['time_limit']; $memory_limit = $_POST['memory_limit']; @@ -22,19 +22,19 @@ $description = $_POST['description']; //$description = str_replace("
", "", $description); //$description = str_replace("
", "", "", $input); //$input = str_replace("
", "", "", $output); //$output = str_replace("
", "", "", $hint); //$hint = str_replace("
", "
" . $MSG_Description . "(<64kB)" ?>
-
-
" . $MSG_Input . "(<64kB)" ?>
-
+
" . $MSG_Output . "(<64kB)" ?>
-
+
" . $MSG_Sample_Input . "(<64kB)" ?> @@ -78,7 +77,7 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
" . $MSG_HINT . "(<64kB)" ?>
-
+
" . $MSG_SPJ . "" ?> diff --git a/web/admin/problem_edit.php b/web/admin/problem_edit.php index a535100..5b0a1a5 100644 --- a/web/admin/problem_edit.php +++ b/web/admin/problem_edit.php @@ -61,17 +61,17 @@ include_once("kindeditor.php") ;
".$MSG_Description.""?>
-
+
".$MSG_Input.""?>
-
+
".$MSG_Output.""?>
-
+
@@ -86,7 +86,7 @@ include_once("kindeditor.php") ;
".$MSG_HINT.""?>
-
+
@@ -227,7 +227,7 @@ include_once("kindeditor.php") ; if (!(isset($_SESSION[$OJ_NAME.'_'."p$id"]) || isset($_SESSION[$OJ_NAME.'_'.'administrator']) || isset($_SESSION[$OJ_NAME.'_'.'problem_editor']) )) exit(); $title = $_POST['title']; - $title = html_entity_decode($title,ENT_QUOTES,"UTF-8"); + // $title = html_entity_decode($title,ENT_QUOTES,"UTF-8"); $time_limit = $_POST['time_limit']; @@ -237,19 +237,19 @@ include_once("kindeditor.php") ; // $description = str_replace("
", "", $description); // $description = str_replace("
", "", "", $input); // $input = str_replace("
", "", "", $output); // $output = str_replace("
", "", "", $hint); // $hint = str_replace("
", "