Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6724

CSP: Inline Javascript in AjaxLink

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.0.0-M5
    • wicket-core
    • None

    Description

      org.apache.wicket.ajax.markup.html.AjaxLink#onComponentTag : should rather completely remove the href, potentially some css class like `wicket-ajax-link` could be added

      if (tagName.equalsIgnoreCase("a") || tagName.equalsIgnoreCase("link") ||
      	tagName.equalsIgnoreCase("area"))
      {
      	// disable any href attr in markup
      	tag.put("href", "javascript:;");
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              papegaaij Emond Papegaaij
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: