Jump to content

Does heliohost automatically sanitize data inserted to the (MySQL) databases?


2bigpigs

Recommended Posts

 

I do it manually in my code and now all my messages have slashes in.

That's a handy security feature but i like to do it manually. Is it possible to turn it off or do i have to change all my code to adapt to it?

I wanted my system to be usable on any server so i'd rather not change too much code.

 

Thanks again :)

Link to comment
Share on other sites

AS far as I know there's nothing out of the ordinary here. However, I did experience something similar a few weeks ago, but I discovered a small error when handling $_POST/$_GET variables and fixed the problem. Could this be the case with your code?

 

Link to comment
Share on other sites

I'm assuming your account is on Johnny? Johnny has Magic Quotes turned on and it should be off:

 

magic_quotes_gpc = On

 

I wanted my system to be usable on any server so i'd rather not change too much code.

 

Then you would always add stripslashes() to compensate for a server who had it on or off.

 

$text = stripslashes($_POST[text]);

 

But you don't have to do that as soon as xaav turns it off. :)

 

 

 

 

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