Browse Source

4728 Remove databases after upgrade

Laurent Opprecht 13 years ago
parent
commit
035d2b0d57
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/admin/system_management.php

+ 2 - 1
main/admin/system_management.php

@@ -16,7 +16,7 @@ class SystemManagementPage extends AdminPage
 {
 
     const PARAM_ACTION = 'action';
-    const PARAM_SECURITY_TOKEN = 'security_token';
+    const PARAM_SECURITY_TOKEN = 'sec_token';
     const ACTION_DEFAULT = 'list';
     const ACTION_SECURITY_FAILED = 'security_failed';
 
@@ -25,6 +25,7 @@ class SystemManagementPage extends AdminPage
         $result = Request::get(self::PARAM_ACTION, self::ACTION_DEFAULT);
         if ($result != self::ACTION_DEFAULT) {
             $passed = Security::check_token('get');
+            Security::clear_token();
             $result = $passed ? $result : self::ACTION_SECURITY_FAILED;
         }
         return $result;