diff --git a/inc/targetbase.class.php b/inc/targetbase.class.php index 2e8301ea5..8b4f3aab4 100644 --- a/inc/targetbase.class.php +++ b/inc/targetbase.class.php @@ -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);