Skip to content

Commit

Permalink
fix(form): duplicate may fail
Browse files Browse the repository at this point in the history
if a question condition contains a single quote in show_value

Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 30, 2018
1 parent 8afe51f commit a29f806
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/form.class.php
Expand Up @@ -1356,6 +1356,7 @@ public function duplicate() {
$row['uuid']);
$row['show_field'] = $tab_questions[$row['show_field']];
$row['plugin_formcreator_questions_id'] = $tab_questions[$row['plugin_formcreator_questions_id']];
$row['show_value'] = Toolbox::addslashes_deep($row['show_value']);
if (!$question_condition->add($row)) {
return false;
}
Expand Down

0 comments on commit a29f806

Please sign in to comment.