Skip to content

Commit

Permalink
fix(question): quote escaping in import
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 23, 2019
1 parent 8233b75 commit ed4b021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ public static function import(PluginFormcreatorImportLinker $importLinker, $sect
$question['_skip_checks'] = true;

// escape text fields
foreach (['name', 'description'] as $key) {
foreach (['name', 'description', 'values'] as $key) {
$question[$key] = $DB->escape($question[$key]);
}

Expand Down

0 comments on commit ed4b021

Please sign in to comment.