[
https://issues.apache.org/jira/browse/WICKET-4453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-4453.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.0.0
1.5.6
Assignee: Martin Grigorov
> [StyleAndScriptIdentifier] Better matching of CDATA-comments
> ------------------------------------------------------------
>
> Key: WICKET-4453
> URL: https://issues.apache.org/jira/browse/WICKET-4453
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.5, 6.0.0
> Reporter: Mathias Binder
> Assignee: Martin Grigorov
> Fix For: 1.5.6, 6.0.0
>
> Attachments: StyleAndScriptIdentifier.patch
>
>
> The current behavior of the postProcess-method causes double CDATA-comments
> in the markup, if a single whitespace appears, e.g: /* <![CDATA[ */
> Instead of searching for CDATA-comments in the markup-string, a regex should
> match all possible occurrences.
> Someting like:
> ...
> String text = body.toString().trim();
> if (!text.matches(".*<!\\[CDATA\\[.*"))
> ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira