versione pre-stable
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
use GlpiPlugin\Urbackup\Config;
|
||||
use Html;
|
||||
|
||||
global $CFG_GLPI;
|
||||
|
||||
@@ -14,6 +13,7 @@ if (!Session::haveRight('config', UPDATE)) {
|
||||
|
||||
// Handle form submission
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['update'])) {
|
||||
Session::checkCSRF();
|
||||
Config::saveConfiguration($_POST);
|
||||
Html::redirect($_SERVER['REQUEST_URI']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user