Skip to content

Commit

Permalink
fix(field): fix quote escaping for file field
Browse files Browse the repository at this point in the history
fix #832
  • Loading branch information
btry committed Feb 5, 2018
1 parent 9d87dd7 commit 0280acf
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 @@ -771,7 +771,7 @@ protected function parseTags($content, PluginFormcreatorForm_Answer $formanswer,
$content = str_replace('##answer_' . $id . '##', addslashes($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 0280acf

Please sign in to comment.