]> git.kaiwu.me - nginx.git/commit
SSI: fixed $date_local and $date_gmt without SSI (ticket #230).
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 28 Jan 2014 11:40:45 +0000 (15:40 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 28 Jan 2014 11:40:45 +0000 (15:40 +0400)
commit1631393f9427892f108d2c6549a568ee1e5ed6bc
treee98ea4cabe4b785e5ef87905ee109fc0d8339992
parentd700bbefdb97f5d8f158265665b1808108eb50de
SSI: fixed $date_local and $date_gmt without SSI (ticket #230).

If there is no SSI context in a given request at a given time,
the $date_local and $date_gmt variables used "%s" format, instead
of "%A, %d-%b-%Y %H:%M:%S %Z" documented as the default and used
if there is SSI module context and timefmt wasn't modified using
the "config" SSI command.

While use of these variables outside of the SSI evaluation isn't strictly
valid, previous behaviour is certainly inconsistent, hence the fix.
src/http/modules/ngx_http_ssi_filter_module.c