Skip to content

Commit

Permalink
fix(form_validator): possible blank page
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Apr 1, 2021
1 parent d1f4554 commit 43e4a09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/form_validator.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

if (!isset($_POST['plugin_formcreator_forms_id'])) {
// should not happen
Html::back();
}
$formId = (int) $_POST['plugin_formcreator_forms_id'];
$formValidator = new PluginFormcreatorForm_Validator();
Expand All @@ -55,4 +56,5 @@
'validation_percent' => $_POST['validation_percent'],
]);
Html::redirect($form->getFormURLWithID($formId));
}
}
Html::back();

0 comments on commit 43e4a09

Please sign in to comment.