• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

isValid throws 403 error

New Here ,
Apr 18, 2013 Apr 18, 2013

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?

Views

636

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 18, 2013 Apr 18, 2013

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. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 19, 2013 Apr 19, 2013

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 19, 2013 Apr 19, 2013

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 18, 2013 Apr 18, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation