Removed “origin” input use in poll creation
This commit is contained in:
parent
adcc4090b0
commit
4cdafba7a2
@ -29,8 +29,6 @@ require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php");
|
|||||||
|
|
||||||
$langs->load("opensurvey");
|
$langs->load("opensurvey");
|
||||||
|
|
||||||
$origin=GETPOST('origin','alpha');
|
|
||||||
|
|
||||||
|
|
||||||
// On teste toutes les variables pour supprimer l'ensemble des warnings PHP
|
// On teste toutes les variables pour supprimer l'ensemble des warnings PHP
|
||||||
// On transforme en entites html les données afin éviter les failles XSS
|
// On transforme en entites html les données afin éviter les failles XSS
|
||||||
@ -107,13 +105,13 @@ if (GETPOST("creation_sondage_date") || GETPOST("creation_sondage_autre"))
|
|||||||
{
|
{
|
||||||
if (! empty($creation_sondage_date))
|
if (! empty($creation_sondage_date))
|
||||||
{
|
{
|
||||||
header("Location: choix_date.php".($origin?'?origin='.$origin:''));
|
header("Location: choix_date.php");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($creation_sondage_autre))
|
if (! empty($creation_sondage_autre))
|
||||||
{
|
{
|
||||||
header("Location: choix_autre.php".($origin?'?origin='.$origin:''));
|
header("Location: choix_autre.php");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,7 +134,6 @@ print_fiche_titre($langs->trans("CreatePoll").' (1 / 2)');
|
|||||||
|
|
||||||
//debut du formulaire
|
//debut du formulaire
|
||||||
print '<form name="formulaire" action="create_survey.php" method="POST" onkeypress="javascript:process_keypress(event)">'."\n";
|
print '<form name="formulaire" action="create_survey.php" method="POST" onkeypress="javascript:process_keypress(event)">'."\n";
|
||||||
print '<input type="hidden" name="origin" value="'.dol_escape_htmltag($origin).'">';
|
|
||||||
|
|
||||||
print '<div class=corps>'."\n";
|
print '<div class=corps>'."\n";
|
||||||
|
|
||||||
|
|||||||
@ -28,8 +28,6 @@ require_once(DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php");
|
|||||||
require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php");
|
require_once(DOL_DOCUMENT_ROOT."/opensurvey/fonctions.php");
|
||||||
|
|
||||||
$origin=GETPOST('origin','alpha');
|
|
||||||
|
|
||||||
$langs->load("opensurvey");
|
$langs->load("opensurvey");
|
||||||
|
|
||||||
|
|
||||||
@ -42,8 +40,7 @@ $arrayofcss=array('/opensurvey/css/style.css');
|
|||||||
llxHeader('', $langs->trans("OpenSurvey"), "", 0, 0, $arrayofjs, $arrayofcss);
|
llxHeader('', $langs->trans("OpenSurvey"), "", 0, 0, $arrayofjs, $arrayofcss);
|
||||||
|
|
||||||
print '<center>
|
print '<center>
|
||||||
<form name="formulaire" action="create_survey.php" method="POST">
|
<form name="formulaire" action="create_survey.php" method="POST">';
|
||||||
<input type="hidden" name="origin" value="'.dol_escape_htmltag($origin).'">';
|
|
||||||
print '<p>'.$langs->trans("OrganizeYourMeetingEasily").'</p>
|
print '<p>'.$langs->trans("OrganizeYourMeetingEasily").'</p>
|
||||||
<div class="corps">
|
<div class="corps">
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user