Re: who added the damn slashes?
| From: | Justin French | Date: | Sun, 21 Apr 2002 02:45:32 +0000 |
| Subject: | Re: who added the damn slashes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93856@lists.php.net to get a copy of this message | ||
I believe the php.ini file has "magic_quote_runtime" (or simular) enabled.
Not much you can do unless you have control of the server (ie, you are the
admin).
You have everything in an array, so it's quite easy to stripslashes() on the
whole array... it'd be a lot harder with individual vars.
Justin French
--------------------
Creative Director
http://Indent.com.au
--------------------
on 15/04/02 8:42 PM, Jeroen Olthof (j.olthof@millipede.nl) wrote:
> Hi,
>
> The problem:
> I don't use addslashes($....) but somehow that is what happens to my posted
> data
>
> The situation:
> I'm building a wizard like form that read all posted data (HTTP_POST_VARS,
> HTTP_GET_VARS etc..) and puts it in an array that is registerd in a session.
> This gives me the possibility to use back en next in the wizard form. But
> every time the slashes are added !!!!!
>
> What is the solution
>
> PHP version 4.0.3pl1
> server is running a slash admin interface (so upgrading is a bit difficult)
>
> what to do , to avoid those auto addslasshes ???
>
> kind regards
> Jeroen Olthof
>
>