回归本源

This commit is contained in:
2024-11-23 18:03:49 +08:00
parent 6b53650a96
commit 385241ac01
3 changed files with 4 additions and 5 deletions

View File

@@ -20,7 +20,6 @@ $description = $_POST['description'];
//$description = str_replace("<p>", "", $description);
//$description = str_replace("</p>", "<br />", $description);
$description = str_replace(",", "&#44;", $description);
$description = str_replace("\n\n", "\n<br/>", $description);
$input = $_POST['input'];
//$input = str_replace("<p>", "", $input);

View File

@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Problem Add</title>
</head>
<pre?php echo "<center><h3>" .$MSG_PROBLEM."-".$MSG_ADD."</h3>
<?php echo "<center><h3>" .$MSG_PROBLEM."-".$MSG_ADD."</h3>
</center>";
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>
<?php echo "<h4>" . $MSG_Description . "(<64kB)</h4>" ?>
<textarea class="kindeditor" rows=13 name=description cols=80><span class='md auto_select'>
<br><br>
</span></textarea><br>
</p>
<p align=left>

View File

@@ -61,7 +61,7 @@ include_once("kindeditor.php") ;
</p>
<p align=left>
<?php echo "<h4>".$MSG_Description."</h4>"?>
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo $row['description']?></textarea><br>
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo htmlentities($row['description'],ENT_QUOTES,"UTF-8")?></textarea><br>
</p>
<p align=left>
@@ -237,7 +237,6 @@ include_once("kindeditor.php") ;
// $description = str_replace("<p>", "", $description);
// $description = str_replace("</p>", "<br />", $description);
$description = str_replace(",", "&#44;", $description);
$description = str_replace("\n\n", "\n<br/>", $description);
$input = $_POST['input'];
// $input = str_replace("<p>", "", $input);