What would I need to edit to support usernames with <> for example?
I think that htmlspecialchars() needs to be in here somewhere but I do not know where it needs to go.
Note that by adding in htmlspecialchars() it should also reduce the odds that this script can be exploited.
Fixed:
Replace:
$goo=$db->query_read_slave("SELECT userid from ". TABLE_PREFIX ."user where username='".$_POST['giftname']."'");
With:
$sqlname = htmlspecialchars($_POST['giftname']);
$goo=$db->query_read_slave("SELECT userid from ". TABLE_PREFIX ."user where username='".$sqlname."'");
|