-
Type:
Task
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: _unsorted
Problem
== Inline Script Block
Line: 104
----
<script type="text/javascript">
<![CDATA[
(function() {
var f = function() {
var height = 0;
var maxCount = ${it.getVisibleItemCount()};
var refElement = document.getElementById("ecp_${h.escape(it.randomName)}_0");
if(maxCount > 0 && refElement && refElement.offsetHeight !=0) {
for(var i=0; i< maxCount; i++) {
height += refElement.offsetHeight + 3;
}
}
else {
height = maxCount * 25.5;
}
height = Math.floor(height);
document.getElementById("ecp_${h.escape(it.randomName)}").style.height = height + "px";
};
f();
})();
]]>
</script>
----
Solution
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks