Skip to content

Commit

Permalink
Merge pull request #924 from mattrjacobs/backport-pr-921
Browse files Browse the repository at this point in the history
fix(title-xss): escaping text acquired from parameters to avoid any xss attacks
  • Loading branch information
mattrjacobs committed Oct 6, 2015
2 parents c5eb45b + 7c5003d commit c66a548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hystrix-dashboard/src/main/webapp/monitor/monitor.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ <h2><span id="title_name"></span></h2>
}

if(getUrlVars()["title"] != undefined) {
$('#title_name').html("Hystrix Stream: " + decodeURIComponent(getUrlVars()["title"]))
$('#title_name').text("Hystrix Stream: " + decodeURIComponent(getUrlVars()["title"]))
} else {
$('#title_name').html("Hystrix Stream: " + decodeURIComponent(stream))
$('#title_name').text("Hystrix Stream: " + decodeURIComponent(stream))
}

//do not show authorization in stream title
Expand Down

0 comments on commit c66a548

Please sign in to comment.