protect variable
This commit is contained in:
parent
e089c94881
commit
a44e613bb7
1 changed files with 5 additions and 1 deletions
|
|
@ -94,7 +94,11 @@ if (isset($_POST['generate']))
|
|||
{
|
||||
$act->Update();
|
||||
}
|
||||
$act->generate_document($_POST['doc_mod'], $_POST);
|
||||
$doc_mod=HtmlInput::default_value_post('doc_mod', "-1");
|
||||
if ( $doc_mod == "-1") {
|
||||
throw new Exception(_('Donnée invalide'));
|
||||
}
|
||||
$act->generate_document($doc_mod, $_POST);
|
||||
$sub_action = 'detail';
|
||||
}
|
||||
/* for delete */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue