Skip to content

Commit e518b7d

Browse files
committed
fix(formanswer): too many escaping
when a formanswer name contains a single quote, it is escaped twice fix #3271
1 parent 23fe611 commit e518b7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/formanswer.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ public function prepareInputForAdd($input) {
837837
}
838838

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

0 commit comments

Comments
 (0)