forked from science-ation/science-ation
Add htmlspecialchars to project title output on winners page to prevent XSS attacks
This commit is contained in:
parent
529491456c
commit
f4e0048df8
@ -151,7 +151,7 @@ if($_GET['year'] && $_GET['type']) {
|
|||||||
if($pr->projectnumber)
|
if($pr->projectnumber)
|
||||||
{
|
{
|
||||||
echo "  ";
|
echo "  ";
|
||||||
echo "($pr->projectnumber) $pr->title";
|
echo "($pr->projectnumber) ".htmlspecialchars($pr->title);
|
||||||
|
|
||||||
$sq=mysql_query("SELECT students.firstname,
|
$sq=mysql_query("SELECT students.firstname,
|
||||||
students.lastname,
|
students.lastname,
|
||||||
@ -198,9 +198,9 @@ if($_GET['year'] && $_GET['type']) {
|
|||||||
echo "  ";
|
echo "  ";
|
||||||
echo "  ";
|
echo "  ";
|
||||||
if($studnum > 1)
|
if($studnum > 1)
|
||||||
echo i18n("Students").": $students";
|
echo i18n("Students").": ".htmlspecialchars($students);
|
||||||
else
|
else
|
||||||
echo i18n("Student").": $students";
|
echo i18n("Student").": ".htmlspecialchars($students);
|
||||||
|
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
echo "  ";
|
echo "  ";
|
||||||
|
Loading…
Reference in New Issue
Block a user