• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cgi.path_info is blank in CF11

New Here ,
Jun 01, 2017 Jun 01, 2017

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

Views

633

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 01, 2017 Jun 01, 2017

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 03, 2017 Jun 03, 2017

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation