Input cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@1743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e4e021901d
commit
2624614452
|
@ -41,20 +41,6 @@ if ($standalone == 0) :
|
|||
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
|
||||
<link rel="shortcut icon" href="../wp-images/wp-favicon.png" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
|
||||
<?php
|
||||
if ($redirect==1) {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function redirect() {
|
||||
window.location = "<?php echo $redirect_url; ?>";
|
||||
}
|
||||
setTimeout("redirect();", 600);
|
||||
//-->
|
||||
</script>
|
||||
<?php
|
||||
} // redirect
|
||||
?>
|
||||
|
||||
<?php if (isset($xfn)) : ?>
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
<?php
|
||||
/* <Bookmarklet> */
|
||||
|
||||
// accepts 'post_title' and 'content' as vars passed in. Add-on from Alex King
|
||||
|
||||
$mode = 'bookmarklet';
|
||||
|
||||
$standalone = 1;
|
||||
|
@ -23,12 +19,11 @@ window.close()
|
|||
</script>
|
||||
</head>
|
||||
<body></body>
|
||||
</html><?php
|
||||
|
||||
</html>
|
||||
<?php
|
||||
} else {
|
||||
|
||||
$popuptitle = stripslashes($popuptitle);
|
||||
$text = stripslashes(urldecode($text));
|
||||
$popuptitle = htmlspecialchars(stripslashes($popuptitle));
|
||||
$text = htmlspecialchars(stripslashes(urldecode($text)));
|
||||
|
||||
/* big funky fixes for browsers' javascript bugs */
|
||||
|
||||
|
@ -57,7 +52,7 @@ window.close()
|
|||
// and that is what is being included below. For this reason, I am just duplicating
|
||||
// the var instead of changing the assignment on the lines above.
|
||||
// -- Alex King 2004-01-07
|
||||
$edited_post_title = $post_title;
|
||||
$edited_post_title = htmlspecialchars($post_title);
|
||||
|
||||
// $post_pingback needs to be set in any file that includes edit-form.php
|
||||
$post_pingback = get_settings('default_pingback_flag');
|
||||
|
|
|
@ -97,7 +97,7 @@ case 'edit':
|
|||
<h2><?php _e('Edit Category') ?></h2>
|
||||
<form name="editcat" action="categories.php" method="post">
|
||||
<input type="hidden" name="action" value="editedcat" />
|
||||
<input type="hidden" name="cat_ID" value="<?php echo $_GET['cat_ID'] ?>" />
|
||||
<input type="hidden" name="cat_ID" value="<?php echo $cat_ID ?>" />
|
||||
<p><?php _e('Category name:') ?><br />
|
||||
<input type="text" name="cat_name" value="<?php echo htmlspecialchars($cat_name); ?>" /></p>
|
||||
<p><?php _e('Category parent:') ?><br />
|
||||
|
|
|
@ -28,7 +28,7 @@ function checkAll(form)
|
|||
<form name="searchform" action="" method="get">
|
||||
<fieldset>
|
||||
<legend><?php _e('Show Comments That Contain...') ?></legend>
|
||||
<input type="text" name="s" value="<?php if (isset($s)) echo $s; ?>" size="17" />
|
||||
<input type="text" name="s" value="<?php if (isset($_GET['s'])) echo htmlspecialchars($_GET['s']); ?>" size="17" />
|
||||
<input type="submit" name="submit" value="<?php _e('Search') ?>" />
|
||||
<input type="hidden" name="mode" value="<?php echo $mode; ?>" />
|
||||
<?php _e('(Searches within comment text, e-mail, URI, and IP address.)') ?>
|
||||
|
@ -148,6 +148,4 @@ if ('view' == $mode) {
|
|||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include('admin-footer.php');
|
||||
?>
|
||||
<?php include('admin-footer.php'); ?>
|
|
@ -65,7 +65,7 @@ if ($drafts || $other_drafts) {
|
|||
if ( isset( $_GET['m'] ) ) {
|
||||
echo $month[substr( $_GET['m'], 4, 2 )] . ' ' . substr( $_GET['m'], 0, 4 );
|
||||
} elseif ( isset( $_GET['s'] ) ) {
|
||||
printf(__('Search for “%s”'), $_GET['s']);
|
||||
printf(__('Search for “%s”'), htmlspecialchars($_GET['s']) );
|
||||
} else {
|
||||
_e('Last 15 Posts');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue