From 6d7b6b8e794a36ea5e117708e4f009059b1eac4c Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 13 Oct 2008 21:55:44 +0000 Subject: [PATCH] Die if invalid user ID passed to user-edit.php. fixes #7291 git-svn-id: http://svn.automattic.com/wordpress/trunk@9135 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-edit.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index 5ad99ed961..3503ae3cec 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -98,6 +98,8 @@ if ( !$user_id ) { } else { wp_die(__('Invalid user ID.')); } +} elseif ( !get_userdata($user_id) ) { + wp_die( __('Invalid user ID.') ); } /**