Skip to content

Commit

Permalink
fix(target): unescaped quote
Browse files Browse the repository at this point in the history
Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed May 29, 2018
1 parent 4b39371 commit 6afa05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ protected function parseTags($content, PluginFormcreatorForm_Answer $formanswer,
$content = str_replace('##answer_' . $id . '##', $value, $content);
} else {
if (strpos($content, '##answer_' . $id . '##') !== false) {
$content = str_replace('##question_' . $id . '##', $name, $content);
$content = str_replace('##question_' . $id . '##', addslashes($name), $content);
if ($value !== '') {
$content = str_replace('##answer_' . $id . '##', __('Attached document', 'formcreator'), $content);

Expand Down

0 comments on commit 6afa05b

Please sign in to comment.