Bug 20944

Summary: mod_ext_filter doesn't set all CGI variables
Product: Apache httpd-2 Reporter: Neil Fraser <apache>
Component: mod_ext_filterAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: CLOSED FIXED    
Severity: normal CC: timof
Priority: P3    
Version: 2.0.46   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: add call to ap_add_common_vars()

Description Neil Fraser 2003-06-20 10:14:08 UTC
Under normal cicumstances, when mod_ext_filter is called there are only 11
environment variables set.  Among the missing ones is HTTP_REFERER.

However, when mod_ext_filter is called on an SHTML file, the full set of 37
environment variables set.
Comment 1 Jeff Trawick 2003-07-11 11:12:49 UTC
Note that mod_include sets additional variables in case the SSI file itself
causes a script to be executed, hence the difference in available variables
based on whether or not your external filter was processing the result of
mod_include.
Comment 2 Jeff Trawick 2003-07-11 22:50:15 UTC
plz try the patch that is forthcoming
Comment 3 Jeff Trawick 2003-07-11 22:51:08 UTC
Created attachment 7262 [details]
add call to ap_add_common_vars()
Comment 4 Neil Fraser 2003-07-12 21:41:36 UTC
> plz try the patch that is forthcoming

Perfect!

This bug was completely blocking my project with no workaround possible.  Thank
you very much for fixing this.  The project in question is here:
  http://neil.fraser.name/software/highlighter/
Comment 5 Jeff Trawick 2003-07-14 15:13:39 UTC
fix committed to 2.1-dev, proposed for merging into 2.0.48-dev

Thanks for your report, and thanks for using Apache!

(cute tool, and its nice to see mod_ext_filter put to such use!)
Comment 6 Jeff Trawick 2003-08-22 11:06:09 UTC
*** Bug 22556 has been marked as a duplicate of this bug. ***