CF 6.1 problems..Junior Programmer - NEED HELP!

Reply

Join Date: Jul 2004
Posts: 4
Reputation: rharp is an unknown quantity at this point 
Solved Threads: 0
rharp rharp is offline Offline
Newbie Poster

CF 6.1 problems..Junior Programmer - NEED HELP!

 
0
  #1
Jul 13th, 2004
I'm receiving the following error anytime I try to click on a link or a button inside my application. I thought it was a session problem, which I tried removing the session_addtoken variable from the links. However, this did not resolve my problem. Any suggestions or ideas would be greatly appreciated!

cfid, cftoken contains invalid characters
This exception is caused by either broken links, or security attacks.
The invalid id is 300,300
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: CF 6.1 problems..Junior Programmer - NEED HELP!

 
0
  #2
Jul 13th, 2004
Are you carrying duplicate URL variables in the URL querystring? Because if you are, be aware of the bug in CFMX. If you have something like this:

somepage.cfm?data=peter&data=parker

and you retrieve data, data will not be equal to "parker" (the last variable assigned), but it's a list of both data's: "peter, parker" - so your illegal character might be the comma.

This was a bug for a while. I don't know if they fixed it yet. If it's not a bug, it's a bad feature in my opinion. It wasn't around in versions prior to CFMX.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 4
Reputation: rharp is an unknown quantity at this point 
Solved Threads: 0
rharp rharp is offline Offline
Newbie Poster

Re: CF 6.1 problems..Junior Programmer - NEED HELP!

 
0
  #3
Jul 13th, 2004
Thanks for the help. I'll need to play with it some more to see if that could be it. It appears that all of my variables are unique, but there are 2 that are very similar. So I'm going to give it a try tomorrow. Thanks again!

-Rebekah
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 4
Reputation: rharp is an unknown quantity at this point 
Solved Threads: 0
rharp rharp is offline Offline
Newbie Poster

Re: CF 6.1 problems..Junior Programmer - NEED HELP!

 
0
  #4
Jul 14th, 2004
Would you know if you can have a number in an URL variable name like id2=#v_id2#. Because I have two variables for example: id=#v_id#&id2=#v_id2#. I was wondering if it ignored the number therefore causing the 2 variable to be the same? Thanks again for your help!

-Rebekah
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 1
Reputation: digi is an unknown quantity at this point 
Solved Threads: 0
digi digi is offline Offline
Newbie Poster

Re: CF 6.1 problems..Junior Programmer - NEED HELP!

 
0
  #5
Aug 10th, 2004
Hey, I was running into this problem with my companies app after the upgrade to 6.1. We use cgi_query_string when switching to/from SSL and this was creating duplicate cfid/cftoken. We also use fusebox but whatever.

ANYWAY, here is what I did to solve our problem.

Put this first in your application.cfm.

<!--- cfid, cftoken querystring concatenation filter --->
<cfif isDefined('cfid') AND isDefined('cftoken')>
<cfset newUrl = CGI.Query_String>
<cfif cfid CONTAINS "," AND cftoken CONTAINS ",">
<cfset n_cfid = "&CFID=" & listGetAt(cfid, 1)>
<cfset newUrl = replace(newUrl, n_cfid, "", "ONE")>
<cfset n_cftoken = "&CFTOKEN=" & listGetAt(cftoken, 1)>
<cfset newUrl = replace(newUrl, n_cftoken, "", "ONE")>
<cflocation url="#cgi.PATH_INFO#?#newUrl#">
</cfif>
</cfif>

<!--- end filter --->
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ColdFusion Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC