Re: [PHP] Magic Quotes Removal code - almost there

2005-02-10 Thread Jason Wong
On Thursday 10 February 2005 23:36, Ben Edwards (lists) wrote: > The cleaning works but magic_quotes_runtime is false even if magic > codes are on, any ideas? There are at least two magic_quotes_* settings, make sure you are referring to the correct one(s). -- Jason Wong -> Gremlins Associates

[PHP] Magic Quotes Removal code - almost there

2005-02-10 Thread Ben Edwards (lists)
The following code is passed $_POST to clean magic quotes code out ;_ function remove_magic_quotes( &$array ) { foreach( $array as $index => $value ) { if ( is_array( $array[$index] ) ) { remove_magic_quotes( $array[$index] ); } else