Jump to content
MakeWebGames

HTML allowed, preventing SQL Injection


Recommended Posts

Posted

On a new game engine i am developing, i want HTML to be enabled within a profile signature (easy enough), but will this not lead to easy SQL injection attacks? How can i prevent against this? Or is it not a problem?

  • 3 weeks later...
Posted

Re: HTML allowed, preventing SQL Injection

Well basicly

add this in some of your codes

 

foreach($_REQUEST as $k=>$v)
{
$_REQUEST[$k]=mysql_real_escape_string($v);
}

 

That should do it.. :lol:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...