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

[xcode-plugin] Extract inline script block and event handler in au/com/rayh/KeychainUnlockStep/config.jelly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • xcode-plugin

      Problems

      == Inline Script Block
      Line: 27
      ----
      <script type="text/javascript">
      		<!--
      			var showOrHideAttributeInput = function(prefix, uuid) {
      				var defaultChosen = (document.getElementById(prefix + uuid).selectedIndex == 0);
      
      				document.getElementById("" + uuid).style.display = defaultChosen ? "block" : "none";
      			};
      		-->
      		</script>
      ----
      
      == Inline Event Handler
      Line: 49
      ----
      <select class="setting-input" name="keychainId" foo="${UID}" id="credential-keychain-select-${UUID}" onchange="showOrHideAttributeInput('credential-keychain-select-', '${UUID}')">
      ----
      

      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: