RE: [PHP] Add Slashes - Server Adds Them Automatically - Advice R equested!

From: Date: Wed, 29 Aug 2001 15:58:41 +0000
Subject: RE: [PHP] Add Slashes - Server Adds Them Automatically - Advice R equested!
Groups: php.general 
Request: Send a blank email to php-general+get-65040@lists.php.net to get a copy of this message
See the magic_quotes_gpc setting in the php.ini file. This can be set to on or off, and is responsible for escaping GET/POST/COOKIE data automatically. Kirk > -----Original Message----- > From: Mike Gifford [mailto:mike@openconcept.on.ca] > Sent: Wednesday, August 29, 2001 9:58 AM > To: php-general@lists.php.net > Subject: [PHP] Add Slashes - Server Adds Them Automatically - Advice > Requested! > > > Hello, > > I've created a little opensource script: > http://openconcept.ca/guide-petition.phtml > > Which uses addslashes() to help clean up data inserted from a > web form. > > This is fine, except that it appears that you can set up php, > so that addslashes are automatically > added: > > "one small thing i noticed was the "addSlashes" issue. it > seems like php is > sometimes installed (such as on my machine) in such a way > that addSlashes > AUTOMATICALLY happens and therefore MANUAL addSlashes adds a SECOND, > superfluous forward slash." > > "eg > Patrick "the skier" kuharic > comes out in invitea friend emails by your system as > Patrick \the skier\ kuharic" > > Has anyone else experienced this? Any suggestions for work arounds? > > Mike

« previous php.general (#65040) next »