Skip to content

Commit

Permalink
[PPP-5351]-XSS Findings For Data-Access ,Pentaho-platform-plugin-dash…
Browse files Browse the repository at this point in the history
…boards
  • Loading branch information
Rangashivani committed Oct 28, 2024
1 parent 7c1b5fa commit a6c46ee
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* Copyright (c) 2002-2017 Hitachi Vantara.. All rights reserved.
* Copyright (c) 2002-2024 Hitachi Vantara.. All rights reserved.
*/

define(["common-ui/util/xss"], function(xssUtil) {
Messages = function()
{
};
Expand Down Expand Up @@ -49,7 +50,7 @@ Messages.entityDecoder=document.createElement('textarea');
Messages.html_entity_decode = function(str)
{
try{
Messages.entityDecoder.innerHTML = str;
xssutil.setHtml(Messages.entityDecoder, str)
var value = Messages.entityDecoder.value;
value = unescape(value);
return value;
Expand Down Expand Up @@ -117,8 +118,9 @@ var cnt = 0;
element = elementOrId;
}
if (element) {
element.innerHTML = Messages.getString(msgKey);
xssutil.setHtml(element, Messages.getString(msgKey));
}
};
/* static init */
Messages.init();
});

0 comments on commit a6c46ee

Please sign in to comment.