[ 
https://issues.apache.org/jira/browse/WICKET-6724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17017889#comment-17017889
 ] 

ASF subversion and git services commented on WICKET-6724:
---------------------------------------------------------

Commit 95e5c4d3e4e2e435e4710324a604259488e66d30 in wicket's branch 
refs/heads/master from Emond Papegaaij
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=95e5c4d ]

WICKET-6724: replace empty inline JS in href by # and event.preventDefault


> CSP: Inline Javascript in AjaxLink
> ----------------------------------
>
>                 Key: WICKET-6724
>                 URL: https://issues.apache.org/jira/browse/WICKET-6724
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>            Reporter: Emond Papegaaij
>            Priority: Major
>
> 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
> {code:java}
> if (tagName.equalsIgnoreCase("a") || tagName.equalsIgnoreCase("link") ||
>       tagName.equalsIgnoreCase("area"))
> {
>       // disable any href attr in markup
>       tag.put("href", "javascript:;");
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to