--- /tmp/dsg/dolibarr/htdocs/cron/admin/github_cron.php +++ /tmp/dsg/dolibarr/htdocs/cron/admin/client_cron.php @@ -35,7 +35,7 @@ if (!$user->admin) accessforbidden(); -$actionsave = GETPOST("save", 'alphanohtml'); +$actionsave = GETPOST("save"); // Save parameters if (!empty($actionsave)) @@ -44,13 +44,15 @@ $db->begin(); - $i += dolibarr_set_const($db, 'CRON_KEY', GETPOST("CRON_KEY"), 'chaine', 0, '', 0); + $i += dolibarr_set_const($db, 'CRON_KEY', trim(GETPOST("CRON_KEY")), 'chaine', 0, '', 0); if ($i >= 1) { $db->commit(); setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); - } else { + } + else + { $db->rollback(); setEventMessages($langs->trans("Error"), null, 'errors'); } @@ -61,8 +63,7 @@ * View */ -$help_url = ''; -llxHeader('', '', $help_url); +llxHeader(); $linkback = ''.$langs->trans("BackToModuleList").''; print load_fiche_titre($langs->trans("CronSetup"), $linkback, 'title_setup'); @@ -73,9 +74,7 @@ print '