Bug 61980 - Improve mod_cgi message for CGI stderr output
Summary: Improve mod_cgi message for CGI stderr output
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_cgi (show other bugs)
Version: 2.5-HEAD
Hardware: PC Mac OS X 10.1
: P2 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Keywords: FixedInTrunk
Depends on:
Reported: 2018-01-09 19:37 UTC by Hank Ibell
Modified: 2018-01-10 00:57 UTC (History)
0 users

Proposed patch for trunk (1.25 KB, patch)
2018-01-09 19:39 UTC, Hank Ibell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hank Ibell 2018-01-09 19:37:42 UTC
The current message for CGI stderr output when using mod_cgi looks similar to the following:
AH01215: "error-message" \r: C:/Apache/cgi-bin/my-cgi-program

If the stderr output from the CGI program is vague, the error message might be confusing to users. (e.g. "Execution failed" C:/Apache/cgi-bin/my-cgi-program).

The proposed patch changes the error message to:
AH01215: stderr from C:/Apache/cgi-bin/my-cgi-program: "error-message"

The patch also fixes the Windows line-ending issue observed above.
Comment 1 Hank Ibell 2018-01-09 19:39:16 UTC
Created attachment 35662 [details]
Proposed patch for trunk
Comment 2 Eric Covener 2018-01-10 00:57:46 UTC
thanks, committed in r1820716.