You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/01/27 00:11:42 UTC
DO NOT REPLY [Bug 38408] New: - SSI environment vars not set in spawned processes
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38408>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38408
Summary: SSI environment vars not set in spawned processes
Product: Apache httpd-2
Version: 2.2.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: mod_include
AssignedTo: bugs@httpd.apache.org
ReportedBy: scl@virginia.edu
Apache 2.2 uses "lazy" evaluation of the SSI specific environment variables
LAST_MODIFIED, DATE_GMT, DATE_LOCAL, etc. These variables are initialized
with a pointer to a particular null string (LAZY_VALUE). If mod_include
references one of these variables and if its value is LAZY_VALUE, then
mod_include sets the variable to its actual value before using it.
When SSI spawns processes via <!--#exec ... --> or
<!--#include virtual= ... --> nothing is done to evaluate SSI variables
that are still set to LAZY_VALUE, so These variables end up in the
environment of the spawned process with null string values.
For example, suppose you have a CGI program named foo.cgi that uses
LAST_MODIFIED and suppose you have this in a html document:
<!--#include virtual="foo.cgi"--> LAST_MODIFIED is the null string
<!--#echo var="LAST_MODIFIED"--> mod_include evaluates LAST_MODIFIED
<!--#include virtual="foo.cgi"--> Now LAST_MODIFIED has correct value
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org