Skip to content

Commit

Permalink
fix(question): prevent double escaping of description
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Feb 5, 2020
1 parent df0855d commit ca2450c
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 @@ -953,7 +953,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con
}

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

Expand Down

0 comments on commit ca2450c

Please sign in to comment.