Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llHTTPRequest, php/mysql and security

Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
09-30-2006 10:36
So I'm working on building llHTTPRequest into one of my scripts and storing some information on a remote database via php/mysql. Let's say that my php script wants to use $headers["X-SecondLife-Object-Key"] and $headers["X-SecondLife-Object-Name"] in a mysql query. How can I check these strings in the php script to make sure no one hijacks the query to mess with my database? Are there particular characters to check for? Can I check a string to make sure it only includes alpha-numeric characters (and dashes for keys)?
_____________________
imakehuddles.com/wordpress/
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
09-30-2006 10:50
in PHP: mysql_real_escape_string()