IsValid and cfparam acceppting lists of values instead of values?
Hello,
I've noticed that cfparam and IsValid accepts a list of integers as a valid value when type="integer" is specified. Is this a bug, or the expected behavior?
Example:
I have a code like this on my pages to check the values passed,
<cftry>
<cfparam name="url.n" default="1" type="integer">
<cfcatch>
<cflocation url="error.cfm" addtoken="no">
</cfcatch>
</cftry>
And also tried:
<cfif NOT IsDefined("url.n") OR NOT IsValid("integer",url.n)><cflocation url="error.cfm" addtoken="no"></cfif>
In both cases, if I pass an url value like n=4 or n=string, it works as expected. With n=4, n passes the check, and the rest of the page is executed. With n=string, a string is detected and a redirection to error.cfm is called.
But, if I pass an url value like n=4,14 then n passes the checks and the rest of the page is executed... ???
Using CF 8.01 over CentOS.
