Skip to main content
Known Participant
April 18, 2013
Question

isValid throws 403 error

  • April 18, 2013
  • 2 replies
  • 733 views

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?

    This topic has been closed for replies.

    2 replies

    Inspiring
    April 18, 2013

    It's your web server throwing the 403. It doesn't sound like processing is getting as far as the CF server/

    --

    Adam

    Participating Frequently
    April 18, 2013

    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. 

    ggantzer2Author
    Known Participant
    April 19, 2013

    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?

    ggantzer2Author
    Known Participant
    April 19, 2013

    both of you were correct. We had some code within the application.cfm. Thanks again for your help.