Skip to main content
Participant
June 1, 2017
Question

cgi.path_info is blank in CF11

  • June 1, 2017
  • 2 replies
  • 714 views

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

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    June 3, 2017

    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

    Legend
    June 1, 2017

    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>