Copy link to clipboard
Copied
Hello,
I am attempting to use this isValid code:
<cfparam name="myVar" default="">
<cfif (myVar NEQ "") AND NOT (isValid("string",myVar))>
Failed<p>
<cfelse>
passed<p>
</cfif>
if i call this page as myPage.cfm?myVar=5, the page works. if i do myPage.cfm?myVar=5555, i get a 403 error. is this a bug?
Copy link to clipboard
Copied
That code works fine on my machine. Are you using IIS URL Rewrite or mod_rewrite? If so, check your rules. 403 indicates that you don't have access to the file being processed.
Copy link to clipboard
Copied
i dont beleive we are, but i will take a look. thanks for the advice. Odd that it would work with "5" but not "5555".
Any hints on tracking down what is interupting the processing?
Copy link to clipboard
Copied
both of you were correct. We had some code within the application.cfm. Thanks again for your help.
Copy link to clipboard
Copied
It's your web server throwing the 403. It doesn't sound like processing is getting as far as the CF server/
--
Adam