-
Type:
Task
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: gitlab-branch-source-plugin
-
713.v9a_03496d45b_c
Problem
== Inline Script Block
Line: 22
----
<script>
// var projectOwner = document.getElementsByClassName('project-owner');
//
// var projectPath = document.getElementsByClassName('project-path');
//
// projectPath.addEventListener('change', function() {
// var currentPath = projectPath.value;
// for(var i = currentPath.length-1; i >= 0; i--) {
// currentPath = currentPath.substring(0, currentPath.length-1);
// if(currentPath[i] === '/') {
// break;
// }
// }
// projectOwner.item(0).value = currentPath;
// })
</script>
----
Solution
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks