Since ColdFusion 2021, savecontent returns a value

Description

Repro:

<cfscript> greeting = savecontent { writeOutput("G'day World") } writeOutput(greeting) </cfscript>

ColdFusion:
G'day world

Lucee 5.3.8.189:
Missing [;] or [line feed] after expression

Activity

Show:

Michael Offner 30 April 2024 at 17:53

this is actually a feature we plan for some time, not specifically for this tag, but as support for tags in general. soyou can for example also do

result=http url="https://lucee.org";

Zac Spitzer 21 July 2021 at 10:29

Pothys - MitrahSoft 19 July 2021 at 15:26

Pothys - MitrahSoft 19 July 2021 at 12:27

I've checked this ticket and yes from ACF2021 savecontent returns a value. In lucee throws an error like "Missing [;] or [line feed] after expression".

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 17 July 2021 at 08:49
Updated 30 April 2024 at 17:53

Flag notifications