Bug 51657

Summary: Support quoted or escaped values containing space character for FcgidCmdOptions InitialEnv
Product: Apache httpd-2 Reporter: Aron Ujvari <ujvari>
Component: mod_fcgidAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: 2.2.19   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Respect quotes (and quoted quotes) in FcgidCmdOptions directive

Description Aron Ujvari 2011-08-12 15:34:39 UTC
Cannot set an initial evironment variable with a value containing space character using FcgidCmdOptions. It leads to syntax error.

I exptected the next configuration to work:

FcgidCmdOptions /path/to/my/program \
InitialEnv MY_VAR="my value with spaces"

I have tried escaping with backslash with no success. Both of the tries gave me syntax error.
Comment 1 William A. Rowe Jr. 2012-10-29 20:05:36 UTC
Created attachment 29521 [details]
Respect quotes (and quoted quotes) in FcgidCmdOptions directive

You can try the attached patch, which will using the config parser instead of a foolish whitespace parser for all the option args.
Comment 2 William A. Rowe Jr. 2012-11-16 18:27:50 UTC
Committed and anticipated in 2.3.8 tag.