On Tue, Feb 07, 2006 at 08:01:27PM +0100, David Charbonnier wrote:
I'm not sure it's a good solution for people with mogic_quote set to 'On' because we will do lot of change on variable we will never access, but it's the easiest ;o)
Charles McNulty a ??crit :
Also there are many other examples of dealing with this problem at: http://us2.php.net/manual/en/function.get-magic-quotes-gpc.php that may be better than the one I pasted in in my last e-mail. In any case, I highly recommend we use one of the solutions that rewrites the $_POST array rather than a solution that requires using a function for every use of a POST variable.
The best solution would have been for magic quotes to never have existed in the first place.