Covering our XSS bases

git-svn-id: https://develop.svn.wordpress.org/trunk@9233 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-10-17 20:06:22 +00:00
parent 377ad4f01d
commit 202c2fc0be
31 changed files with 31 additions and 31 deletions

View File

@ -140,7 +140,7 @@ if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?>
endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul>
<form class="search-form" action="" method="get">

View File

@ -121,7 +121,7 @@ if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['sp
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub">
<?php

View File

@ -457,7 +457,7 @@ endif;
<?php endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form name="post" action="post.php" method="post" id="post">
<?php

View File

@ -76,7 +76,7 @@ $messages[6] = __('Categories deleted.'); ?>
endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub"><li><a class="current"><br /></a></li></ul>
<form class="search-form" action="" method="get">

View File

@ -320,7 +320,7 @@ add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link'
</div>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<!--
<p id="big-add-button">

View File

@ -358,7 +358,7 @@ endif;
</div>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form name="post" action="page.php" method="post" id="post">
<?php if ( $notice ) : ?>

View File

@ -135,7 +135,7 @@ if ( (int) $_GET['locked'] ) {
endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub">
<?php

View File

@ -143,7 +143,7 @@ $messages[6] = __('Tags deleted.'); ?>
endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul>
<form class="search-form" action="" method="get">

View File

@ -22,7 +22,7 @@ require_once ('admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p>

View File

@ -13,7 +13,7 @@ require_once ('admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<p><?php _e('If you have posts or comments in another system, WordPress can import those into this blog. To get started, choose a system to import from below:'); ?></p>
<?php

View File

@ -38,7 +38,7 @@ $today = current_time('mysql', 1);
</div>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<div id="dashboard-widgets-wrap">

View File

@ -95,7 +95,7 @@ if ( isset($_GET['deleted']) ) {
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<div class="filter">
<form id="list-filter" action="" method="get">

View File

@ -56,7 +56,7 @@ if ( isset($_GET['inline']) ) {
$parent_file = 'edit.php';
require_once('admin-header.php'); ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form enctype="multipart/form-data" method="post" action="media-upload.php?inline=&amp;upload-page-form=" class="media-upload-form type-form validate" id="file-form">

View File

@ -16,7 +16,7 @@ include('admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form method="post" action="options.php">
<input type='hidden' name='option_page' value='discussion' />

View File

@ -49,7 +49,7 @@ include('./admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form method="post" action="options.php">
<input type='hidden' name='option_page' value='general' />

View File

@ -17,7 +17,7 @@ include('admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form action="options.php" method="post">
<input type="hidden" name="action" value="update" />

View File

@ -17,7 +17,7 @@ include('admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form method="post" action="options.php">
<input type='hidden' name='option_page' value='misc' />

View File

@ -123,7 +123,7 @@ else
<?php endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form name="form" action="options-permalink.php" method="post">
<?php wp_nonce_field('update-permalink') ?>

View File

@ -16,7 +16,7 @@ include('./admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form method="post" action="options.php">
<?php wp_nonce_field('privacy-options') ?>

View File

@ -16,7 +16,7 @@ include('admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form name="form1" method="post" action="options.php">
<?php wp_nonce_field('reading-options') ?>

View File

@ -16,7 +16,7 @@ include('admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form method="post" action="options.php">
<?php wp_nonce_field('writing-options') ?>

View File

@ -96,7 +96,7 @@ default:
</div>
<?php endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<div class="tablenav">
<div class="alignleft">

View File

@ -52,7 +52,7 @@ do_action('install_plugins_pre_' . $tab); //Used to override the general interfa
include('admin-header.php');
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub">
<?php

View File

@ -203,7 +203,7 @@ if( !empty($invalid) )
<?php endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<p><?php _e('Plugins extend and expand the functionality of WordPress. Once a plugin is installed, you may activate it or deactivate it here.'); ?></p>
<?php

View File

@ -99,7 +99,7 @@ $description = get_file_description($file);
$desc_header = ( $description != $file_show ) ? "$description</strong> (%s)" : "%s";
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<div class="bordertitle">
<form id="themeselector" action="theme-editor.php" method="post">
<strong><label for="theme"><?php _e('Select theme to edit:'); ?> </label></strong>

View File

@ -98,7 +98,7 @@ function theme_update_available( $theme ) {
?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<h2><?php _e('Current Theme'); ?></h2>
<div id="current-theme">

View File

@ -17,7 +17,7 @@ require_once('admin-header.php');
if ( ! $is_opera ) {
?>
<div id="gears-info-box" class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<img src="images/gear.png" title="Gear" alt="" class="gears-img" />
<div id="gears-msg1">

View File

@ -183,7 +183,7 @@ if ( isset($message) ) { ?>
<?php do_action('restrict_manage_posts'); ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<ul class="subsubsub">
<?php

View File

@ -177,7 +177,7 @@ include ('admin-header.php');
<?php endif; ?>
<div class="wrap" id="profile-page">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form id="your-profile" action="" method="post">
<?php wp_nonce_field('update-user_' . $user_id) ?>

View File

@ -264,7 +264,7 @@ if ( ! empty($messages) ) {
} ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form id="posts-filter" action="" method="get">
<?php if ( $wp_user_search->is_search() ) : ?>

View File

@ -233,7 +233,7 @@ require_once( 'admin-header.php' ); ?>
<?php endif; ?>
<div class="wrap">
<h2><?php echo $title ?></h2>
<h2><?php echo wp_specialchars( $title ); ?></h2>
<form id="widgets-filter" action="" method="get">