-
Type:
Task
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: jobconfighistory-plugin
-
1283.veb_dfb_00b_5ec0
Problems
== Inline Script Block
Line: 11
----
<script>hljs.initHighlightingOnLoad();</script>
----
== Inline Script Block
Line: 69
----
<script>
var showVersionDiffsJs = true;
function toggleShowHideVersionDiffsJs(hideText, showText) {
showVersionDiffsJs = !showVersionDiffsJs;
if (showVersionDiffsJs === true) {
document.getElementById("tbody_versionDiffsShown").style.display = '';
document.getElementById("tbody_versionDiffsHidden").style.display = 'none';
document.getElementById("showHideVersionDiffsJsButton").value = hideText;
} else {
document.getElementById("tbody_versionDiffsShown").style.display = 'none';
document.getElementById("tbody_versionDiffsHidden").style.display = '';
document.getElementById("showHideVersionDiffsJsButton").value = showText;
}
}
</script>
----
== Inline Event Handler
Line: 90
----
<input id="showHideVersionDiffsJsButton" class="small-button" type="button" value="${%Hide Version Changes}" onClick="toggleShowHideVersionDiffsJs('${hideTextStr}', '${showTextStr}');"/>
Solutions
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers