Bug 19108: Fix Stored XSS in fieldmapping.pl

To Test
1. Hit the page /cgi-bin/koha/admin/fieldmapping.pl
2. Add a text in the field Field name that contains js
3. Save the page.
4. Notice js is execute
5. Apply patch and reload, the js is escaped

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Amit Gupta 2017-08-15 14:10:43 +05:30 committed by Jonathan Druart
parent 6a68fd0330
commit ec85c6b0a2

View file

@ -69,7 +69,7 @@ $(document).ready(function() {
</tr>
[% FOREACH field IN fields %]
<tr>
<td>[% field.field %]</td>
<td>[% field.field |html %]</td>
<td>[% field.fieldcode %]</td>
<td>[% field.subfieldcode %]</td>
<td><a class="btn btn-default btn-xs" href="?op=delete&amp;id=[% field.id %]&amp;framework=[% field.frameworkcode %]"><i class="fa fa-trash"></i> Delete</a></td>