Revert "Bug 26102: Prevent XSS when To.json is used: authorities/authorities.tt"

This reverts commit 711848f856.
This commit is contained in:
Wainui Witika-Park 2022-02-21 04:58:03 +00:00
parent dbc4f4df25
commit 39c42f6a2c
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ function AreMandatoriesNotOk(){
[% FOREACH subfield_loo IN innerloo.subfield_loop %]
[% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
tab.push("[% BIG_LOO.number | html %]");
label.push("[% To.json(subfield_loo.marc_lib) | html %]");
label.push("[% subfield_loo.marc_lib | $raw |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]");
[% END %]
[% END %]
[% END %]