What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » new host inserting "\"'s everywhere

new host inserting "\"'s everywhere
Author: Message:
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
34 / Male / Flag
Joined: Aug 2005
O.P. new host inserting "\"'s everywhere
ive just paid for some new hosting and a domain with invisional hosting and all of a sudden there are aload of "\"s everywhere... meaning alot of the code is messed up....

link

as you can see, there's a randomly instered \ before every inverted comma (') in the text visible and in some of the includes before every speech mark (") as well... anyone know what's causing this??
formerly methos
07-08-2006 07:13 PM
Profile PM Web Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: new host inserting "\"'s everywhere
I think it's "magic_quotes_gpc".

I'm not sure how to disable it, try stripslashes or something in that fashion.

EDIT:
http://php.net/manual/en/ref.info.php#ini.magic-quotes-gpc

This post was edited on 07-08-2006 at 08:14 PM by Ezra.
[Image: 1-0.png]
             
07-08-2006 08:11 PM
Profile PM Web Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
RE: new host inserting "\"'s everywhere
I think that this is done to prevent sql injections..
It's for your own good ;)

But the problem is, that I don't know how to prevent sql injections, while not having the "\"... :(
YouTube closed-captions ripper (also allows you to download videos!)
07-08-2006 09:08 PM
Profile E-Mail PM Web Find Quote Report
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: new host inserting "\"'s everywhere
str_replace() before they're outputted, thats what I do.
If you use a CMS type thing, when writing it to a file/db replace them then.

This post was edited on 07-08-2006 at 09:11 PM by hmaster.
[Image: sig.png]
07-08-2006 09:10 PM
Profile PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: new host inserting "\"'s everywhere
quote:
Originally posted by Mike

But the problem is, that I don't know how to prevent sql injections, while not having the "\"

addslahes you mean, well you could try mysql excape string, which it slighly more sercure. But it is good your host is doing this, sql injection is a major sercuity hole hackers will look at :P.
07-08-2006 09:12 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: new host inserting "\"'s everywhere
Just use stripslashes on all the sql outputted strings to remove the slashes
[Image: 1-0.png]
             
07-08-2006 09:55 PM
Profile PM Web Find Quote Report
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
34 / Male / Flag
Joined: Aug 2005
O.P. RE: new host inserting "\"'s everywhere
ok, awesome, thanks for the help
formerly methos
07-09-2006 04:39 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On