htmlentities -> htmlspecialchars

This commit is contained in:
2024-12-06 15:35:38 +08:00
parent daa005f029
commit d9b2d13caa
184 changed files with 410 additions and 405 deletions

View File

@@ -58,7 +58,7 @@ else {
$time=getPartByMark($file_content,"时间限制:","ms");
$time=intval($time)/1000;
$memory=getPartByMark($file_content,"空间限制:","MiB");
echo "<hr>".htmlentities(" $title $source");
echo "<hr>".htmlspecialchars(" $title $source");
$pid = addproblem($title,$time,$memory, $description, $input, $output, $sample_input, $sample_output, $hint, $source, $spj, $OJ_DATA);
echo "PID:$pid";
mkdir($OJ_DATA."/$pid");