Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74668

[zscaler-iac-scan] Extract inline script block and event handler in io/jenkins/plugins/zscaler/Configuration/config.jelly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • _unsorted

      Problems

      == Inline Script Block
      Line: 5
      ----
      <script type="text/javascript">
              function CheckRegion(val) {
                  var element = document.getElementById('url');
                  if (val == 'custom')
                      element.style.display = 'block';
                  else
                      element.style.display = 'none';
              }
      
          </script>
      ----
      
      == Inline Event Handler
      Line: 18
      ----
      <select name="region" onchange='CheckRegion(this.value);'>
      ----
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
      https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: