RE: Re: [PHP] Has anyone else seen this problem on php4.01 patch level 2?

From: Date: Wed, 19 Jul 2000 23:14:17 +0000
Subject: RE: Re: [PHP] Has anyone else seen this problem on php4.01 patch level 2?
Groups: php.general 
Request: Send a blank email to php-general+get-7355@lists.php.net to get a copy of this message
Yes it's extremely annoying since we have a fair amount of php code that relied on the php3 behavior. I don't think going through and adding stripslashes() in all our files is going to work. Thanks for the tip. I'll give it a try using magic_quotes_gpc. - Ray -----Original Message----- From: troels [mailto:troels@arvin.dk] Sent: Wednesday, July 19, 2000 4:00 PM To: Ray Tanaka Cc: troels; php-general Subject: Re: [PHP] Has anyone else seen this problem on php4.01 patch level 2? ray@skygo.com wrote: > When I call... > > http://mahi:9080/echo.php?text=ray%27s+car > > it outputs: > ray\'s car > > i'm expecting: > ray's car Yes, isn't it annoying. Your server probably has the PHP feature "Magic Quotes GPC" turned off. The feature is good for in-experienced PHP-users because it eliminates some potential SQL security problems. But's it's a pain in the a** if you know when to use addslashes() and don't want PHP to mess with your variables. You have to options: 1. turn of Magic Quotes GPC, or 2. run stripslashes() on all incoming data. -- Greetings from Troels Arvin, Copenhagen, Denmark

« previous php.general (#7355) next »