diff --git a/web/admin/problem_add.php b/web/admin/problem_add.php index dbd26e5..e677422 100644 --- a/web/admin/problem_add.php +++ b/web/admin/problem_add.php @@ -20,7 +20,6 @@ $description = $_POST['description']; //$description = str_replace("
", "", $description); //$description = str_replace("
", "", "", $input); diff --git a/web/admin/problem_add_page.php b/web/admin/problem_add_page.php index 30f7c3f..5fda0b0 100644 --- a/web/admin/problem_add_page.php +++ b/web/admin/problem_add_page.php @@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
" .$MSG_PROBLEM."-".$MSG_ADD."
+" .$MSG_PROBLEM."-".$MSG_ADD."
"; include_once("kindeditor.php") ; $source=pdo_query("select source from problem order by problem_id desc limit 1"); //默认续用最后一次的分类标签 @@ -49,7 +49,8 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_ < align=left> " . $MSG_Description . "(<64kB)" ?>
diff --git a/web/admin/problem_edit.php b/web/admin/problem_edit.php index 95e03ab..6cd24a4 100644 --- a/web/admin/problem_edit.php +++ b/web/admin/problem_edit.php @@ -61,7 +61,7 @@ include_once("kindeditor.php") ;
".$MSG_Description.""?> -
+
@@ -237,7 +237,6 @@ include_once("kindeditor.php") ; // $description = str_replace("
", "", $description); // $description = str_replace("
", "
", $description); $description = str_replace(",", ",", $description); - $description = str_replace("\n\n", "\n
", $description); $input = $_POST['input']; // $input = str_replace("", "", $input);