| | |
CF 6.1 problems..Junior Programmer - NEED HELP!
Please support our ColdFusion advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2004
Posts: 4
Reputation:
Solved Threads: 0
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
cfid, cftoken contains invalid characters
This exception is caused by either broken links, or security attacks.
The invalid id is 300,300
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.
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.
•
•
Join Date: Aug 2004
Posts: 1
Reputation:
Solved Threads: 0
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')>
<!--- end filter --->
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 --->
![]() |
Similar Threads
- Considering Career Change to Software Development (IT Professionals' Lounge)
- Forum lurkers, introduce yourself ... !! (Community Introductions)
- Need Help: basic problems... (C++)
Other Threads in the ColdFusion Forum
- Previous Thread: Need Help with login authentication
- Next Thread: Show today's date
| Thread Tools | Search this Thread |






