Re: Add Slashes - Server Adds Them Automatically - Advice Requested!

From: Date: Thu, 30 Aug 2001 17:43:10 +0000
Subject: Re: Add Slashes - Server Adds Them Automatically - Advice Requested!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-65345@lists.php.net to get a copy of this message
Hmm.. Forms always produced slashed data than I wouldn't have gotten a MySQL error on the ' in O'Neil.. But perhaps it is something on my server.. Andrey Hristov wrote:
I think that always from a form the script gets slashed data. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% ----- Original Message ----- From: "Mike Gifford" <mike@openconcept.on.ca> To: <php-general@lists.php.net> Sent: Wednesday, August 29, 2001 6:58 PM 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 -- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal education. - A Einstein -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Abolish Nuclear Weapons Now!: http://pgs.ca/petition/ It is a miracle that curiosity survives formal education. - A Einstein

« previous php.general (#65345) next »