Skip to content

Commit

Permalink
fix(form): unescape form name
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Sep 19, 2022
1 parent 2d16a70 commit 5b80265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/pages/userform.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{% set formName = 'plugin_formcreator_form' %}
<form name="{{ formName }}" method="post" role="form" enctype="multipart/form-data" class="plugin_formcreator_form" action="javascript:plugin_formcreator.submitUserForm()" onkeypress="return plugin_formcreator.submitUserFormByKeyPress(event);" id="plugin_formcreator_form" data-itemtype="PluginFormcreatorForm" data-id="{{ item.fields['id'] }}">
<h1 class='form-title'>
{{ __(item.fields['name'], options.domain) }}
{{ call('Glpi\\Toolbox\\Sanitizer::unsanitize', [__(item.fields['name'], options.domain)]) }}
<i class="fas fa-print" style="cursor: pointer;" onclick="window.print();"></i>
</h1>
{% if item.fields['content'] != '' or item.getExtraHeader() != "" %}
Expand Down

0 comments on commit 5b80265

Please sign in to comment.