From 5c9e75b18eb0ecd96b0694a07df6685be67ecf93 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 5 Nov 2008 06:47:35 +0000 Subject: [PATCH] stripslashes() on plugin-install.php stuff git-svn-id: http://svn.automattic.com/wordpress/trunk@9521 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin-install.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index b809d276a..e2f4e7e93 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -86,8 +86,8 @@ add_action('install_plugins_search', 'install_search', 10, 1); * @param string $page */ function install_search($page) { - $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : ''; - $term = isset($_REQUEST['s']) ? $_REQUEST['s'] : ''; + $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; + $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; $args = array(); @@ -162,8 +162,8 @@ function install_dashboard() { * @since 2.7.0 */ function install_search_form(){ - $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : ''; - $term = isset($_REQUEST['s']) ? $_REQUEST['s'] : ''; + $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; + $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; ?>