I was mucking about with CFMX at home (still CF5 in work) and came
across something I couldn't explain. Whenever I used URL querystring
parameters, any URL parameters I had created with cfparam disappeared.
I tracked it down to the following sequence of code which demonstrates
the issue. I only recently downloaded a copy of CFMX from MM so AFAIK
it's the latest version.
Can anybody recreate this? Am I using the setEncoding function
incorrectly? Am I doing something stupid?
Following code demonstrates what I was seeing on my home setup.
--------------- url-test.cfm -----------------------
<cfparam name="URL.appreset" default="false">
<cfparam name="URL.appdebug" default="false">
<cfparam name="URL.appdump" default="false">
<cfset setEncoding("URL", "UTF-8")>
<cfset setEncoding("form", "UTF-8")>
<cfcontent type="text/html; charset=UTF-8">
<cfdump var="#URL#">
--------------- url-test.cfm -----------------------
Then make two calls
1. url-test.cfm
2. url-test.cfm?testing=true
On the first call, the URL parameters set by the cfparams are shown
correctly.
On the second call, they disappear and only the 'testing' URL parameter
is shown. Should the cfparam's not still be there?
I've looked in the archives and googled for a while but couldn't find
any reference to this behaviour. Thanks in advance.
--
David Collie
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

