using check_admin_referer for plugin (de)activation

git-svn-id: http://svn.automattic.com/wordpress/trunk@1299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-05-17 20:16:54 +00:00
parent cc35b0c6bd
commit 0dbe04e28e
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@
if (isset($_GET['action'])) {
$standalone = 1;
require_once('admin-header.php');
check_admin_referer();
if ('activate' == $_GET['action']) {
$current = "\n" . get_settings('active_plugins') . "\n";
$current = preg_replace("|(\n)+\s*|", "\n", $current);