943,522 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Unsolved
  • Views: 5450
  • ColdFusion RSS
Jul 13th, 2004
0

CF 6.1 problems..Junior Programmer - NEED HELP!

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rharp is offline Offline
4 posts
since Jul 2004
Jul 13th, 2004
0

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

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.
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002
Jul 13th, 2004
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rharp is offline Offline
4 posts
since Jul 2004
Jul 14th, 2004
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rharp is offline Offline
4 posts
since Jul 2004
Aug 10th, 2004
0

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

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 --->
Reputation Points: 10
Solved Threads: 0
Newbie Poster
digi is offline Offline
1 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: Need Help with login authentication
Next Thread in ColdFusion Forum Timeline: Open resizable window from a cfform





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC