fix(title-xss): escaping text acquired from parameters to avoid any xss attacks
https://github.com/Netflix/Hystrix/pull/921
This commit is contained in:
@@ -101,9 +101,9 @@
|
||||
var poolStream = "${contextPath}/proxy.stream?origin=" + stream;
|
||||
|
||||
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))
|
||||
}
|
||||
}
|
||||
console.log("Command Stream: " + commandStream)
|
||||
|
||||
Reference in New Issue
Block a user