More sanitization cleanups
git-svn-id: https://develop.svn.wordpress.org/trunk@2557 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e3c23045c
commit
34f8f74d36
@ -88,7 +88,7 @@ if ( is_month() ) {
|
|||||||
<form name="searchform" action="" method="get" style="float: left; width: 16em; margin-right: 3em;">
|
<form name="searchform" action="" method="get" style="float: left; width: 16em; margin-right: 3em;">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php _e('Search Posts…') ?></legend>
|
<legend><?php _e('Search Posts…') ?></legend>
|
||||||
<input type="text" name="s" value="<?php if (isset($s)) echo $s; ?>" size="17" />
|
<input type="text" name="s" value="<?php if (isset($s)) echo wp_specialchars($s, 1); ?>" size="17" />
|
||||||
<input type="submit" name="submit" value="<?php _e('Search') ?>" />
|
<input type="submit" name="submit" value="<?php _e('Search') ?>" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
@ -487,7 +487,7 @@ case 'confirmdeletecomment':
|
|||||||
require_once('./admin-header.php');
|
require_once('./admin-header.php');
|
||||||
|
|
||||||
$comment = $_GET['comment'];
|
$comment = $_GET['comment'];
|
||||||
$p = $_GET['p'];
|
$p = (int) $_GET['p'];
|
||||||
$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
|
$commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
|
||||||
|
|
||||||
if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) {
|
if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user