Strip extra slashes from _POST when doing nonce AYS. Props MarkJaquith and mdawaffe. fixes #2761

git-svn-id: https://develop.svn.wordpress.org/trunk@3833 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-06-01 23:38:34 +00:00
parent 40f80adc70
commit acb5008e9c
1 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,8 @@ function check_admin_referer($action = -1) {
$adminurl = $referer;
$title = __('WordPress Confirmation');
require_once(ABSPATH . '/wp-admin/admin-header.php');
// Remove extra layer of slashes.
$_POST = stripslashes_deep($_POST );
if ( $_POST ) {
$q = http_build_query($_POST);
$q = explode( ini_get('arg_separator.output'), $q);