Skip to content

Commit

Permalink
fix(formanswer): abusive scaping on section name
Browse files Browse the repository at this point in the history
when generating a default template for a target, section name containing a quote is escaped, generating a unwanted backslash

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Feb 6, 2019
1 parent 0303120 commit 0a74aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ public function getFullForm($richText = false) {
// Get and display current section if needed
if ($last_section != $question_line['section_name']) {
if ($richText) {
$output .= '<h2>' . Toolbox::addslashes_deep($question_line['section_name']) . '</h2>';
$output .= '<h2>' . $question_line['section_name'] . '</h2>';
} else {
$output .= $eol . Toolbox::addslashes_deep($question_line['section_name']) . $eol;
$output .= '---------------------------------' . $eol;
Expand Down

0 comments on commit 0a74aba

Please sign in to comment.