Bug 61980

Summary: Improve mod_cgi message for CGI stderr output
Product: Apache httpd-2 Reporter: Hank Ibell <hwibell>
Component: mod_cgiAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: minor Keywords: FixedInTrunk
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X 10.1   
Attachments: Proposed patch for trunk

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.