Ticket #10360: 10360.2.diff
File 10360.2.diff, 994 bytes (added by , 16 years ago) |
---|
-
wp-settings.php
588 588 589 589 // If already slashed, strip. 590 590 if ( get_magic_quotes_gpc() ) { 591 $_GET = stripslashes_deep($_GET ); 592 $_POST = stripslashes_deep($_POST ); 593 $_COOKIE = stripslashes_deep($_COOKIE); 591 $_GET = stripslashes_deep($_GET ); 592 $_POST = stripslashes_deep($_POST ); 593 $_REQUEST = stripslashes_deep($_REQUEST); 594 $_COOKIE = stripslashes_deep($_COOKIE ); 594 595 } 595 596 596 597 // Escape with wpdb. 597 $_GET = add_magic_quotes($_GET ); 598 $_POST = add_magic_quotes($_POST ); 599 $_COOKIE = add_magic_quotes($_COOKIE); 600 $_SERVER = add_magic_quotes($_SERVER); 598 $_GET = add_magic_quotes($_GET ); 599 $_POST = add_magic_quotes($_POST ); 600 $_REQUEST = add_magic_quotes($_REQUEST); 601 $_COOKIE = add_magic_quotes($_COOKIE ); 602 $_SERVER = add_magic_quotes($_SERVER ); 601 603 602 604 do_action('sanitize_comment_cookies'); 603 605