Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Scripting Sightly Engine 1.0.18
-
None
Description
HTL can generate invalid Java code by using user-supplied input or markup elements as fragments for variable names, leading to failed script executions.
This could happen with the data-sly-attribute plug-in, when the value is a map and the plug-in has to analyse previously defined attributes (see v-bind:src):
<img src="" v-bind:src="abc" data-sly-attribute="${logic.hello}" />
or with user-defined script variable names:
<div data-sly-test.jcr:title="${1>0}">correctly escaped variable</div>
Attachments
Issue Links
- relates to
-
SLING-6223 Impossible to create HTL resource type that starts with a number inside the foldername
- Resolved