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

@@ -96,7 +96,7 @@
<div class="ui action fluid input">
<input type="text" name="keyword"
value="<?php if (isset($_POST['keyword']))
echo htmlentities($_POST['keyword'], ENT_QUOTES, "UTF-8") ?>"
echo htmlspecialchars($_POST['keyword'], ENT_QUOTES, "UTF-8") ?>"
placeholder="<?php echo $MSG_CONTEST_NAME ?>">
<button type=submit class="ui button">
<?php echo $MSG_SEARCH; ?>