De-tainting a number

Mark Ingram mark.ingram at nexsan.com
Fri Jul 25 14:10:33 UTC 2003


Hi,

I have the following line:

	SendSQL("INSERT INTO bugs (reg_test) VALUES (" . SqlQuote($reg_test) . ")
WHERE bug_id = $bugid");

which isnt working obviously because the $bugid is still tainted. How do i
de-taint a number?


Best Regards,

Mark Ingram
Software Engineer
Nexsan Technologies
33 - 35 Parker Centre
Mansfield Road
Derby
DE21 4SZ




More information about the developers mailing list