tracker issue : CF-4204297

select a category, or use search below
(searches all categories and all time range)

Don't allow reserved key word in tag also.

| View in Tracker

Status/Resolution/Reason: Needs Review//HighRisk

Reporter/Name(from Bugbase): Kannan P. / ()

Created: 05/09/2019

Components: Tags

Versions: 11.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: Pre /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 0

Problem Description: We should allow the Reserved words in tag too. For example one of my client used a "For" as a argument while call a function which is tag based code. Now we are upgrade in to CF2018 so we are decided as switch it from tag to scrip based. Now passing the "For" in to script based we need to change the passing arguments too 

For example : 
<cfset testCall = callFunc( a=10,For=20)>
Out put :#testCall#

    testCall = callFunc( a=10,For=20);


<cffunction name="callFunc" access="public" returntype="Any">
    <cfargument name="a" required="true">
    <cfargument name="For" required="true">
    <cfreturn ARGUMENTS.a * ARGUMENTS.For>

The first callFunc() having for argument as for=20 which is allowed but while converting it into script based we are not allow that as arguments. 

So while changing code style from tag to script we need to change this kind of things too. So better we don't allow a reserved key word in both tag and script.

Steps to Reproduce: I've posted my clear question in

Actual Result:

Expected Result:

Any Workarounds: