Revert "Bug 26102: Prevent XSS when To.json is used: authorities/blinddetail-biblio-search.tt"
This reverts commit 9179e5b707.
This commit is contained in:
parent
92af04b913
commit
dbc4f4df25
|
|
@ -30,12 +30,12 @@
|
|||
var new_line = "";
|
||||
[% ELSE %]
|
||||
var new_line = "
|
||||
[%- FOREACH SUBFIELD_LOO IN SUBFIELD_LOOP -%]‡
|
||||
[%- To.json( SUBFIELD_LOO.marc_subfield ) | html -%]
|
||||
[%- FOREACH marc_value IN SUBFIELD_LOO.marc_values -%]
|
||||
[%- To.json( marc_value ) | html -%]
|
||||
[%- END -%]
|
||||
[%- END -%]‡9[% authid | html %]";
|
||||
[%- FOREACH SUBFIELD_LOO IN SUBFIELD_LOOP -%]‡
|
||||
[%- SUBFIELD_LOO.marc_subfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r ') | html -%]
|
||||
[%- FOREACH marc_value IN SUBFIELD_LOO.marc_values -%]
|
||||
[%- marc_value |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html -%]
|
||||
[%- END -%]
|
||||
[%- END -%]‡9[% authid | html %]";
|
||||
[% END %]
|
||||
RancorReplaceField( new_line, "[% indicator1 | html %]", "[% indicator2 | html %]" );
|
||||
[% ELSE %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue