Jump to content
MakeWebGames

\ in signitures and forums on my game nn


konk353535

Recommended Posts

Hello i have \ in the output of my forum i know why these \ are there to stop sql injection i just want to know how to get rid of them?

str replace if so another error im having is that im updating the sig and with only one ' it gets 3x larger\ every time so i had around 30 \ multiplying by 3 each time i updated

can anyone give me some help on the matter?

Link to comment
Share on other sites

you could do as dj is saying but i would put it in a function so if magic_quotes is on or off will not effect how you run it not it will still need to be used like any function its not a "add and its magically secure" function :)

 

 
function Clean($text) { 
if (get_magic_globals_gpc() == 1) { 
$text= stripslashes($text); 
} 
$text= mysql_real_escape_string($text); 
return $text; 
} 
Link to comment
Share on other sites

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...