Monday, May 21, 2018

CF-4202541 - cfml comment breaks optional semicolon

Issue: cfml comment breaks optional semicolon

Steps to Reproduce:
1) Run:

<cfscript>
  f = function(){var foo="bar"}
</cfscript>

<!---<cfscript>
  a = "b"
</cfscript>--->

Actual Result: Random exception dependent upon the contents of the CFML comment

Expected Result: no output

2) Remove the blank line between the cfscript pairs, or add a semicolon after the code within the 2nd cfscript pair

Actual Result: "--->"

Expected Result: no output

Verified in build 2018.0.01.308605 (PreRelease).
Filed as CF-4202541.

No comments:

Post a Comment

ColdFusion member functions for XML object management

Prior to ColdFusion 2018, ColdFusion supported the following XML member functions : .elemNew() (equivalent of XmlElemNew ) .childPos(...