htmlentities -> htmlspecialchars
This commit is contained in:
@@ -162,7 +162,7 @@
|
||||
echo "<h4>$MSG_Source</h4>";
|
||||
$cats = explode(" ", $row['source']);
|
||||
foreach ($cats as $cat) {
|
||||
echo "<a href='problemset.php?search=" . urlencode(htmlentities($cat, ENT_QUOTES, 'utf-8')) . "'>" . htmlentities($cat, ENT_QUOTES, 'utf-8') . "</a> ";
|
||||
echo "<a href='problemset.php?search=" . urlencode(htmlspecialchars($cat, ENT_QUOTES, 'utf-8')) . "'>" . htmlspecialchars($cat, ENT_QUOTES, 'utf-8') . "</a> ";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user