Skip to content

Commit b10134e

Browse files
committed
fix(condition): escape quote in import
1 parent 929a5f8 commit b10134e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inc/question_condition.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public static function import($questions_id = 0, $condition = [], $storeOnly = t
9191
$item = new static();
9292
$question = new PluginFormcreatorQuestion();
9393
$condition['show_field'] = plugin_formcreator_getFromDBByField($question, 'uuid', $condition['show_field']);
94+
$condition['show_value'] = Toolbox::addslashes_deep($condition['show_value']);
9495
if (isset($condition['id'])) {
9596
$item->update($condition);
9697
} else {

0 commit comments

Comments
 (0)