https://issues.apache.org/bugzilla/show_bug.cgi?id=39369





--- Comment #16 from Joe Orton <[email protected]>  2009-03-17 07:49:40 PST ---
>From a gdb session:

1) yes, there are indeed two adjacent INCLUDES filters in the filter chain

2) at the time that handle_echo() evaluates the DATE_LOCAL variable,
r->subprocess_env has DATE_LOCAL set to the LAZY_VALUE sentinel.

3) it then calls into add_include_vars_lazy() to set up DATE_LOCAL properly

4) add_include_vars_lazy() uses the default timefmt setting from the
configuration -- ignoring any timefmt setting from the SSI script itself

Unverified conjecture: (2) is happening because the second INCLUDES filter is
coming in and nuking the DATE_LOCAL etc set up correctly when the first filter
interpreted the "config timefmt" section.

Avoiding multiple INCLUDES in a filter chain sounds kind of attractive but I'm
not sure why such a configuration should be a explicitly forbidden.

Fixing add_include_vars_lazy() to inherit the script's timefmt setting would
seem to be an alternative fix for this.  Indeed, add_include_vars() already
takes ctx->time_str but ignores it.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to