diff options
author | plegall <plg@piwigo.org> | 2009-12-17 01:02:44 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2009-12-17 01:02:44 +0000 |
commit | 587aaa02102e97f71a7dfb07ec48efc36593b924 (patch) | |
tree | 3fe61c33a0b3cbcc08883b1939c78046ce8729c5 /admin/plugins_update.php | |
parent | f2fa6c16d92bbf36820645cc6a39d2a128f572fc (diff) |
bug 1328: implements check_pwg_token at plugin management level.
git-svn-id: http://piwigo.org/svn/branches/2.0@4506 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/plugins_update.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/admin/plugins_update.php b/admin/plugins_update.php index e6d6705fe..953fddd8e 100644 --- a/admin/plugins_update.php +++ b/admin/plugins_update.php @@ -37,6 +37,8 @@ $plugins = new plugins(); //-----------------------------------------------------------automatic upgrade if (isset($_GET['plugin']) and isset($_GET['revision']) and !is_adviser()) { + check_pwg_token(); + $plugin_id = $_GET['plugin']; $revision = $_GET['revision']; @@ -48,6 +50,7 @@ if (isset($_GET['plugin']) and isset($_GET['revision']) and !is_adviser()) redirect($base_url . '&revision=' . $revision . '&plugin=' . $plugin_id + . '&pwg_token='.get_pwg_token() . '&reactivate=true'); } @@ -133,7 +136,9 @@ if ($plugins->get_server_plugins()) // Plugin need upgrade $url_auto_update = $base_url . '&revision=' . $plugin_info['revision_id'] - . '&plugin=' . $plugin_id; + . '&plugin=' . $plugin_id + . '&pwg_token='.get_pwg_token() + ; $template->append('plugins_not_uptodate', array( 'EXT_NAME' => $fs_plugin['name'], |