Changeset 9521
- Timestamp:
- 11/05/2008 06:47:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin-install.php
r9506 r9521 87 87 */ 88 88 function install_search($page) { 89 $type = isset($_REQUEST['type']) ? $_REQUEST['type']: '';90 $term = isset($_REQUEST['s']) ? $_REQUEST['s']: '';89 $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; 90 $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; 91 91 92 92 $args = array(); … … 163 163 */ 164 164 function install_search_form(){ 165 $type = isset($_REQUEST['type']) ? $_REQUEST['type']: '';166 $term = isset($_REQUEST['s']) ? $_REQUEST['s']: '';165 $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; 166 $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; 167 167 168 168 ?><form id="search-plugins" method="post" action="<?php echo admin_url('plugin-install.php?tab=search') ?>"> … … 250 250 global $tab; 251 251 252 $type = isset($_REQUEST['type']) ? $_REQUEST['type']: '';253 $term = isset($_REQUEST['s']) ? $_REQUEST['s']: '';252 $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; 253 $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; 254 254 255 255 $plugins_allowedtags = array('a' => array('href' => array(),'title' => array(), 'target' => array()), … … 376 376 global $tab; 377 377 378 $api = plugins_api('plugin_information', array('slug' => $_REQUEST['plugin']));378 $api = plugins_api('plugin_information', array('slug' => stripslashes( $_REQUEST['plugin'] ) )); 379 379 380 380 if ( is_wp_error($api) ) … … 391 391 $api->$key = wp_kses($api->$key, $plugins_allowedtags); 392 392 393 $section = isset($_REQUEST['section']) ? $_REQUEST['section']: 'description'; //Default to the Description tab, Do not translate, API returns English.393 $section = isset($_REQUEST['section']) ? stripslashes( $_REQUEST['section'] ) : 'description'; //Default to the Description tab, Do not translate, API returns English. 394 394 if( empty($section) || ! isset($api->sections[ $section ]) ) 395 395 $section = array_shift( $section_titles = array_keys((array)$api->sections) ); … … 553 553 function install_plugin() { 554 554 555 $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin']: '';555 $plugin = isset($_REQUEST['plugin']) ? stripslashes( $_REQUEST['plugin'] ) : ''; 556 556 557 557 check_admin_referer('install-plugin_' . $plugin); … … 585 585 } 586 586 587 $plugin = isset($_REQUEST['plugin']) ? $_REQUEST['plugin']: '';587 $plugin = isset($_REQUEST['plugin']) ? stripslashes( $_REQUEST['plugin'] ) : ''; 588 588 589 589 $url = 'plugin-install.php?tab=install'; 590 $url = add_query_arg(array('plugin' => $plugin, 'plugin_name' => $_REQUEST['plugin_name'], 'download_url' => $_REQUEST['download_url']), $url);590 $url = add_query_arg(array('plugin' => $plugin, 'plugin_name' => stripslashes( $_REQUEST['plugin_name'] ), 'download_url' => stripslashes( $_REQUEST['download_url'] ) ), $url); 591 591 592 592 $url = wp_nonce_url($url, 'install-plugin_' . $plugin);
Note: See TracChangeset
for help on using the changeset viewer.