From c377504cd32383bccfe68ff366f3288f3967e83f Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 20 Apr 2005 04:06:37 +0000 Subject: [PATCH] More sanitization cleanups git-svn-id: http://svn.automattic.com/wordpress/trunk@2557 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit.php | 2 +- wp-admin/post.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index aacb05ca9..ca8141880 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -88,7 +88,7 @@ if ( is_month() ) {
- +
diff --git a/wp-admin/post.php b/wp-admin/post.php index cbd51e185..20fbd8e39 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -487,7 +487,7 @@ case 'confirmdeletecomment': require_once('./admin-header.php'); $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. Go back!'), 'edit.php')); if (!user_can_delete_post_comments($user_ID, $commentdata['comment_post_ID'])) {