Skip to content

Commit

Permalink
Fixed data point and data source names are not escaped in user profil…
Browse files Browse the repository at this point in the history
…es view #3063
  • Loading branch information
Patrykb0802 committed Dec 10, 2024
1 parent 284961e commit 5061af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebContent/WEB-INF/jsp/usersProfiles.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
for (i=0; i<dataSources.length; i++) {
id = "ds"+ dataSources[i].id;
dshtml += '<input type="checkbox" id="'+ id +'" onclick="dataSourceChange(this)">';
dshtml += '<label for="'+ id +'"> '+ dataSources[i].name +'</label><br/>';
dshtml += '<label for="'+ id +'"> '+ escapeHtml(dataSources[i].name) +'</label><br/>';
dshtml += '<div style="margin-left:25px;" id="dsps'+ dataSources[i].id +'">';
if (dataSources[i].points.length > 0) {
dshtml += '<table cellspacing="0" cellpadding="1">';
for (j=0; j<dataSources[i].points.length; j++) {
dp = dataSources[i].points[j];
dshtml += '<tr>';
dshtml += '<td class="formLabelRequired">'+ dp.name +'</td>';
dshtml += '<td class="formLabelRequired">'+ escapeHtml(dp.name) +'</td>';
dshtml += '<td>';
dshtml += '<input type="radio" name="dp'+ dp.id +'" id="dp'+ dp.id +'/0" value="0">';
dshtml += '<label for="dp'+ dp.id +'/0"><spring:message code="common.access.none"/></label> ';
Expand Down

0 comments on commit 5061af6

Please sign in to comment.