Add referer checks. Props masquerade.

git-svn-id: https://develop.svn.wordpress.org/trunk@3618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-03-06 08:19:41 +00:00
parent 529b9350cc
commit 5b484ee182
1 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,7 @@ $action = "delete";
switch($action) {
case 'post':
check_admin_referer();
$post_ID = write_post();
@ -92,6 +93,8 @@ case 'editattachment':
add_post_meta($post_id, '_wp_attachment_metadata', $newmeta);
case 'editpost':
check_admin_referer();
$post_ID = edit_post();
if ($_POST['save']) {