Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] isstill set

From: Date: Fri, 13 Feb 2004 17:14:47 +0000
Subject: Re: $_POST getting lost, $GLOBALS['HTTP_RAW_POST_DATA'] isstill set
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-177617@lists.php.net to get a copy of this message
"Adam Bregenzer" <adam@bregenzer.net> wrote in message news:1076691719.2411.5.camel@arcon... > Having a function to undo magic quotes can be very useful if you > distribute your application. Here is what I use, just call > disable_magic_quotes(). It should not do any damage if magic_quotes is > already disabled. <snipped code> Looks pretty good to me, and it is a little more robust than my solution since it checks for the existence of objects, and also sets the magic_quotes_gpc ini setting to 0 after escaping them. However, I am still interested in knowing if my code is broken in any way. It seems to work fine for me, but as per my original post, I did get this one odd behavior, with HTTP_RAW_POST_DATA being set, but _POST being an empty array. Any thoughts?

« previous php.general (#177617) next »