You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The name of the form having quotes is stored with backslashes in field 'name' of 'glpi_plugin_formcreator_formanswers'
To Reproduce
Set a form with quote in his name
Answer the form
Look entry created in 'glpi_plugin_formcreator_formanswers'
GLPI version 10.0.6
FormCreataor 2..13.5
I solve the problem by replacing
$input['name'] = $DB->escape($this->parseTags($form->fields['formanswer_name']));
by
$input['name'] = $this->parseTags($form->fields['formanswer_name']);
on line 831 of /inc/formanswer.class.php (prepareInputForAdd function)
The text was updated successfully, but these errors were encountered:
Hi,
The name of the form having quotes is stored with backslashes in field 'name' of 'glpi_plugin_formcreator_formanswers'
To Reproduce
I solve the problem by replacing
$input['name'] = $DB->escape($this->parseTags($form->fields['formanswer_name']));
by
$input['name'] = $this->parseTags($form->fields['formanswer_name']);
on line 831 of /inc/formanswer.class.php (prepareInputForAdd function)
The text was updated successfully, but these errors were encountered: