Skip to content

Commit

Permalink
fix(title-xss): escaping text acquired from parameters to avoid any x…
Browse files Browse the repository at this point in the history
…ss attacks
  • Loading branch information
Cestmir Ruzicka authored and Matt Jacobs committed Oct 6, 2015
1 parent c5eb45b commit 7c5003d
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 7c5003d

Please sign in to comment.