htmlentities -> htmlspecialchars
This commit is contained in:
@@ -145,7 +145,7 @@
|
||||
$label_theme = $color_theme[$hash_num % count($color_theme)];
|
||||
if ($label_theme == "")
|
||||
$label_theme = "default";
|
||||
$view_category .= "<a class='badge badge-$label_theme' href='problemset.php?search=" . urlencode(htmlentities($cat, ENT_QUOTES, 'UTF-8')) . "'>" . $cat . "</a> ";
|
||||
$view_category .= "<a class='badge badge-$label_theme' href='problemset.php?search=" . urlencode(htmlspecialchars($cat, ENT_QUOTES, 'UTF-8')) . "'>" . $cat . "</a> ";
|
||||
}
|
||||
}
|
||||
echo $view_category;
|
||||
|
||||
Reference in New Issue
Block a user