Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)
Created: 09/04/2014
Components: Language
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Mac 10 All
Vote Count: 8
Consider this example:
<cfscript>
function getfoo() {
writeoutput("do you see me?");
return "foo";
}
username = encodeForHTML(url.name) ?: "Anonymous";
writeOutput(username);
u2 = encodeForHTML(url.name) ?: getfoo();
</cfscript>
If url.name exists, then getfoo() should not execute, but it does.
Both Railo/Groovy handle the RHS side correctly.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3818770
External Customer Info:
External Company:
External Customer Name: cfjedimaster
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: