Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
9.0.0-M4
-
None
Description
org.apache.wicket.markup.html.formSubmitLink uses inline Javascript in two places.
The href attribute is replaced with empty JS. This will cause a CSP violation. A different solution needs to be found. Probably via a JS event handler that calls event.preventDefault().
tag.put("href", "javascript:;");
The trigger javascript is rendered as onclick. This needs to be an event handler.
tag.put("onclick", getTriggerJavaScript());
Attachments
Issue Links
- is a child of
-
WICKET-6687 Cleanup the code from attribute inline styles and attribute inline scripts
- Resolved
- links to