Skip to content

Commit

Permalink
fixing cross site issue
Browse files Browse the repository at this point in the history
related to #630
  • Loading branch information
tpokorra committed Oct 29, 2021
1 parent 2e992c9 commit 82152fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js-client/src/lib/tpl.js
Expand Up @@ -5,7 +5,7 @@
// Christopher Jäkel <cj@tbits.net>
//
// Copyright 2017-2018 by TBits.net
// Copyright 2019-2020 by SolidCharity.com
// Copyright 2019-2021 by SolidCharity.com
//
// This file is part of OpenPetra.
//
Expand Down Expand Up @@ -471,7 +471,7 @@ function insertData(o, d, to_string=false, currencyCode="EUR", limit_to_table=''
f.text( printCurrency(v, currencyCode) );
}
} else if ( ["SPAN","SUB","H1","H2"].indexOf(f.prop("tagName")) > -1 ) {
f.html( v );
f.html( v.replace('<', '&lt;').replace('>', '&gt;') );
} else {
f.val( v );
}
Expand Down

0 comments on commit 82152fa

Please sign in to comment.