Added XSS prevention
This commit is contained in:
parent
ee75a14ac4
commit
5f25780550
1 changed files with 2 additions and 2 deletions
|
@ -27,12 +27,12 @@
|
|||
$query= mysql_query($sql);
|
||||
if(mysql_num_rows($query) != 1)
|
||||
{
|
||||
echo "NOT FOUND: $sql";
|
||||
echo "NOT FOUND: ".sanitizeHTML($sql);
|
||||
}
|
||||
else
|
||||
{
|
||||
$memid = mysql_fetch_assoc($query);
|
||||
echo $memid['memid'];
|
||||
echo sanitizeHTML($memid['memid']);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue