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:[EMAIL PROTECTED]]
> Sent: Wednesday, August 29, 2001 9:58 AM
> To: [EMAIL PROTECTED]
> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]