Skip to content

Commit

Permalink
Fixed XSS vulnerability in findField list (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
annaowens authored Mar 7, 2021
1 parent 76f63e9 commit 2042e09
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -765,10 +765,11 @@ dojo.widget.defineWidget(
lastItemDisplayed = this.objectsFound.length;
}

this.infoBar.innerHTML = '';
if (this.lastPhraseSearched != null)
this.infoBar.innerHTML = '   ' + omsgs.resultsFor + ' "' + this.lastPhraseSearched + '".  ';

if (this.lastPhraseSearched != null) {
resultsText = omsgs.resultsFor + ' "' + this.lastPhraseSearched + '".';
this.infoBar.innerHTML = $j('<div/>').text(resultsText).html();
}

if (this.objectsFound.length > 0)
this.infoBar.innerHTML += omsgs.searchResultsViewing + " <b>" + this.firstItemDisplayed + "-" + lastItemDisplayed + "</b> " + omsgs.searchResultsOf + " <b>" + total + "</b> &nbsp; ";

Expand Down

0 comments on commit 2042e09

Please sign in to comment.