Skip to content

Commit

Permalink
fix(formanswer): too many escaping
Browse files Browse the repository at this point in the history
when a formanswer name contains a single quote, it is escaped twice

fix #3271
  • Loading branch information
btry committed May 5, 2023
1 parent 23fe611 commit e518b7d
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 @@ -837,7 +837,7 @@ public function prepareInputForAdd($input) {
}

try {
$input['name'] = $DB->escape($this->parseTags($form->fields['formanswer_name']));
$input['name'] = $this->parseTags($form->fields['formanswer_name']);
} catch (Exception $e) {
// A fatal error caught during parsing of tags
$GLPI->getErrorHandler()->handleException($e, false);
Expand Down

0 comments on commit e518b7d

Please sign in to comment.