From a2e14c070bb8c62a85809cf7913f499f18cfeede Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Sat, 13 Feb 2010 17:49:38 +0000 Subject: [PATCH] strip slashes, block arrays in ms-edit.php, fixes #11778 git-svn-id: https://develop.svn.wordpress.org/trunk@13115 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/ms-edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index d435282e75..951519c827 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -201,12 +201,12 @@ switch ( $_GET['action'] ) { $c = 1; $count = count( $_POST[ 'option' ] ); foreach ( (array) $_POST['option'] as $key => $val ) { - if ( $key === 0 ) + if ( $key === 0 || is_array( $val ) ) continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options if ( $c == $count ) - update_option( $key, $val ); + update_option( $key, stripslashes( $val ) ); else - update_option( $key, $val, false ); // no need to refresh blog details yet + update_option( $key, stripslashes( $val ), false ); // no need to refresh blog details yet $c++; } }