htmlentities -> htmlspecialchars
This commit is contained in:
@@ -58,7 +58,7 @@ function do_submit_one($remote_site,$username,$password,$sid){
|
||||
}else{
|
||||
$sid=explode("\n",$data);
|
||||
$sid=intval($sid[1]);
|
||||
echo htmlentities($data)."--".$sid;
|
||||
echo htmlspecialchars($data)."--".$sid;
|
||||
}
|
||||
return $sid;
|
||||
}
|
||||
@@ -108,7 +108,7 @@ function do_result_one($remote_site,$username,$password,$sid,$rid){
|
||||
echo "previous submission failed , pending another submiting ";
|
||||
return -1;
|
||||
}
|
||||
echo "<br>==".htmlentities($html)."==";
|
||||
echo "<br>==".htmlspecialchars($html)."==";
|
||||
if($data[2]=="Waiting"||$data[2]=="Judging"){
|
||||
$sql="update solution set result=17,judgetime=now() where solution_id=?";
|
||||
pdo_query($sql,$sid);
|
||||
|
||||
Reference in New Issue
Block a user