Skip navigation
Currently Being Moderated

isValid throws 403 error

Apr 18, 2013 12:16 PM



I am attempting to use this isValid code:


<cfparam name="myVar" default="">


<cfif (myVar NEQ "") AND NOT (isValid("string",myVar))>






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?

  • Currently Being Moderated
    Apr 18, 2013 4:20 PM   in reply to ggantzer2

    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. 

    Mark as:
  • Currently Being Moderated
    Apr 18, 2013 4:24 PM   in reply to ggantzer2

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




    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points