Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@

## [UNRELEASE]
Comment thread
Herafia marked this conversation as resolved.

### Bug Fixes

* Display special chars
Comment thread
Herafia marked this conversation as resolved.

## [2.13.10](https://github.com/pluginsGLPI/formcreator/compare/2.13.9...2.13.10) (2025-02-26)


Expand Down
5 changes: 3 additions & 2 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
use GlpiPlugin\Formcreator\Exception\ImportFailureException;
use GlpiPlugin\Formcreator\Exception\ExportFailureException;
use Glpi\Application\View\TemplateRenderer;
use Glpi\Toolbox\Sanitizer;

if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
Expand Down Expand Up @@ -809,11 +810,11 @@ public static function getFormList(int $rootCategory = 0, string $keywords = '',
}
$formList[] = [
'id' => $form['id'],
'name' => htmlspecialchars(__($form['name'], $domain)),
'name' => htmlspecialchars(Sanitizer::unsanitize(__($form['name'], $domain))),
'icon' => htmlspecialchars($form['icon']),
'icon_color' => htmlspecialchars($form['icon_color']),
'background_color' => htmlspecialchars($form['background_color']),
'description' => htmlspecialchars(__($form['description'], $domain) ?? ''),
'description' => htmlspecialchars(Sanitizer::unsanitize(__($form['description'], $domain) ?? '')),
'type' => 'form',
'usage_count' => $form['usage_count'],
'is_default' => $form['is_default'] ? "true" : "false",
Expand Down
2 changes: 1 addition & 1 deletion templates/pages/form.formanswer.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<tr>
<td>{{ row.id }}</td>
<td>{{ get_item_link('PluginFormcreatorFormAnswer', row.id) }}</a></td>
<td>{{ row.form_name }}</td>
<td>{{ row.form_name|verbatim_value }}</td>
<td>{{ row.requester_name }}</td>
<td>{{ row.request_date }}</td>
</tr>
Expand Down
Loading