Need help... Context validation error for tag cfscript.
Code:
<cffunction name="computeHash" access="public" returntype="String">
<cfargument name="password" type="string" />
<cfargument name="salt" type="string" />
<cfargument name="iterations" type="numeric" required="false" default="1024" />
<cfargument name="algorithm" type="string" required="false" default="SHA512" />
<cfscript>
var hashed = '';
var i = 1;
hashed = hash( password & salt, arguments.algorithm, 'UTF-8' );
for (i = 1; i <= iterations; i++) {
hashed = hash( hashed & salt, arguments.algorithm, 'UTF-8' );
}
return hashed;
</cfscript>
</cffunction>
Error on web app:
Context validation error for tag cfscript. | |
| The start tag must have a matching end tag. An explicit end tag can be provided by adding </cfscript>. If the body of the tag is empty you can use the shortcut <cfscript .../>. The CFML compiler was processing:
| |
| The error occurred in xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\salty.cfc: line 11 | |
9 : <cfargument name="iterations" type="numeric" required="false" default="1024" /> | |
I am completely lost on why it's fumbling with why it says there's no closing tag. Help!!!!
Thanks
