Merge pull request #12823 from frederic34/patch-18
add newtoken in create survey
This commit is contained in:
commit
940a9fc800
@ -119,6 +119,7 @@ if (empty($_SESSION['titre']))
|
||||
//On prépare les données pour les inserer dans la base
|
||||
|
||||
print '<form name="formulaire" action="#bas" method="POST">'."\n";
|
||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||
|
||||
print load_fiche_titre($langs->trans("CreatePoll").' (2 / 2)');
|
||||
|
||||
|
||||
@ -328,6 +328,7 @@ else
|
||||
|
||||
//Debut du formulaire et bandeaux de tete
|
||||
print '<form name="formulaire" action="" method="POST">'."\n";
|
||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||
|
||||
print load_fiche_titre($langs->trans("CreatePoll").' (2 / 2)');
|
||||
|
||||
|
||||
@ -136,6 +136,7 @@ print load_fiche_titre($langs->trans("CreatePoll").' (1 / 2)');
|
||||
|
||||
// debut du formulaire
|
||||
print '<form name="formulaire" action="" method="POST">'."\n";
|
||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||
|
||||
dol_fiche_head();
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2016 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -41,6 +42,7 @@ llxHeader('', $langs->trans("Survey"), '', "", 0, 0, $arrayofjs, $arrayofcss);
|
||||
print load_fiche_titre($langs->trans("CreatePoll"));
|
||||
|
||||
print '<form name="formulaire" action="create_survey.php" method="POST">';
|
||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||
print '<div class="center">';
|
||||
print '<p>'.$langs->trans("OrganizeYourMeetingEasily").'</p>';
|
||||
print '<div class="corps">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user