Posted By

rc2789 on 12/04/10


Tagged

textmate wordpress backslashes


Versions (?)

Wordpress: remove backslashes


 / Published in: Other
 

  1. <?php
  2. if ( get_magic_quotes_gpc() ) {
  3. $_POST = array_map( 'stripslashes_deep', $_POST );
  4. $_GET = array_map( 'stripslashes_deep', $_GET );
  5. $_COOKIE = array_map( 'stripslashes_deep', $_COOKIE );
  6. $_REQUEST = array_map( 'stripslashes_deep', $_REQUEST );
  7. }
  8. ?>

Report this snippet  

You need to login to post a comment.