Re: MDB2 autoExecute escaping data

From: Date: Sun, 07 Oct 2007 17:49:34 +0000
Subject: Re: MDB2 autoExecute escaping data
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28067@lists.php.net to get a copy of this message
Mark Steudel wrote:
I think I'm checking for that, here's the code I am running: // convert to html entities $html = htmlentities( $_POST['content'], ENT_QUOTES ); // check if magic quotes gpc is on, remove slashes if( get_magic_quotes_gpc() ) {
    $data = stripslashes( $html);
} Generally, you should call stripslashes() before anything else, i.e. before htmlentities().
Christian

« previous php.pear.general (#28067) next »