Copy link to clipboard
Copied
Hi,
Has anyone noticed that cgi.path_info is blank in CF11? Is there any work around for this besides using script_name? Thanks for the help.
Mike
Copy link to clipboard
Copied
Hmm. I guess I never used that field. I'm guessing script_name is your only hope. The safest might be something like:
<cfset variables.path = CGI.path_info />
<cfif NOT len(variables.path)>
<cfset variables.path = CGI.script_name />
</cfif>
<cfif doWhateverUsing variables.path>...
</cfif>
Copy link to clipboard
Copied
Hi Mike,
That is the intended behaviour of CGI.PATH_INFO from ColdFusion 10 onwards. The issue was discussed exhaustively in CGI.PATH_INFO is blank in CF 10