htmlentities -> htmlspecialchars
This commit is contained in:
@@ -90,7 +90,7 @@ function toInput($temp){
|
||||
if(mb_strpos($kv[0],"OJ_UDP")>0) return "";
|
||||
if(mb_strpos($kv[0],"OJ_WEIBO")>0) return "";
|
||||
$temp=toName($kv[0]).":<input name='".$kv[0]."' value=".$kv[1]." >\n";
|
||||
$temp.="\t<input name='old_".$kv[0]."' type='hidden' value='".htmlentities($kv[1],ENT_QUOTES,'UTF-8')."' >\n";
|
||||
$temp.="\t<input name='old_".$kv[0]."' type='hidden' value='".htmlspecialchars($kv[1],ENT_QUOTES,'UTF-8')."' >\n";
|
||||
|
||||
return $temp."\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user