Highlighted

cgi.path_info is blank in CF11

New Here ,
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

462

Likes

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

cgi.path_info is blank in CF11

New Here ,
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

463

Likes

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
Jun 01, 2017 0
Advocate ,
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>

Likes

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
Reply
Loading...
Jun 01, 2017 1
BKBK LATEST
Adobe Community Professional ,
Jun 03, 2017

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

Likes

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
Reply
Loading...
Jun 03, 2017 0