mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 01:48:21 +01:00
Add referer check. Props masquerade.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
75a62f2e1e
commit
b8bbbd656e
@ -77,6 +77,8 @@ case 'edit':
|
||||
break;
|
||||
|
||||
case 'editattachment':
|
||||
check_admin_referer();
|
||||
|
||||
$post_id = (int) $_POST['post_ID'];
|
||||
|
||||
// Don't let these be changed
|
||||
|
Loading…
Reference in New Issue
Block a user