I have something that works here for me in CFMX with "the latest updater". Its a
modification of Ben Forta's cf_FakeURL, which threw a 500 when I just tried it a
second ago. So did Pablo Varando's code.
The problem is cgi.path_info is coming back as the same value as what I'd expect to
see from cgi.query_string. This in turn screws up all sorts of things in the FakeURl
code. Writing like this makes it work again. I can show a before/after if you like.
So does this code work for you? I'm running on the internal web server, but as I said
its throwing the identical error you reported.
--Matt--
<cfparam name="attributes.VarScope" default="url." type="string">
<cfparam name="attributes.delimiter" default="/" type="string">
<cfif Len(cgi.Path_Info) GT 0>
<cfset variables.items=ListLen(cgi.Path_Info,attributes.delimiter)>
<cfif variables.items MOD 2 IS 0>
<cfloop
from="1"
to="#variables.items#"
step="2"
index="i">
<cfset variables.i1=ListGetAt(cgi.Path_Info,i,
attributes.delimiter)>
<cfset variables.i2=ListGetAt(cgi.Path_Info,i+1,
attributes.delimiter)>
<cfset "#attributes.VarScope##variables.i1#"=variables.i2>
</cfloop>
</cfif>
</cfif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4