Merge pull request #12823 from frederic34/patch-18

add newtoken in create survey
This commit is contained in:
Laurent Destailleur 2020-01-10 00:22:21 +01:00 committed by GitHub
commit 940a9fc800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 0 deletions

View File

@ -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)');

View File

@ -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)');

View File

@ -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();

View File

@ -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">';