summaryrefslogtreecommitdiff
path: root/src/mod_accesslog.c
diff options
context:
space:
mode:
authorArno Töll <arno@debian.org>2012-11-21 23:03:58 +0100
committerArno Töll <arno@debian.org>2012-11-21 23:03:58 +0100
commit985230456afb0b945234dfac919a6ece3df4a715 (patch)
tree8f820570c0f78de9a32888317a48163721da923a /src/mod_accesslog.c
parentae5d7c9fce70d39274e4da707f384021f6ec46d4 (diff)
downloadlighttpd-985230456afb0b945234dfac919a6ece3df4a715.tar.gz
Imported Upstream version 1.4.26upstream/1.4.26
Diffstat (limited to 'src/mod_accesslog.c')
-rw-r--r--src/mod_accesslog.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mod_accesslog.c b/src/mod_accesslog.c
index b6e3814..07cb82e 100644
--- a/src/mod_accesslog.c
+++ b/src/mod_accesslog.c
@@ -788,6 +788,13 @@ REQUESTDONE_FUNC(log_access_write) {
buffer_append_string_len(b, CONST_STR_LEN("-"));
}
break;
+ case FORMAT_ENV:
+ if (NULL != (ds = (data_string *)array_get_element(con->environment, p->conf.parsed_format->ptr[j]->string->ptr))) {
+ accesslog_append_escaped(b, ds->value);
+ } else {
+ buffer_append_string_len(b, CONST_STR_LEN("-"));
+ }
+ break;
case FORMAT_FILENAME:
if (con->physical.path->used > 1) {
buffer_append_string_buffer(b, con->physical.path);
@@ -864,7 +871,6 @@ REQUESTDONE_FUNC(log_access_write) {
{ 'A', FORMAT_LOCAL_ADDR },
{ 'C', FORMAT_COOKIE },
{ 'D', FORMAT_TIME_USED_MS },
- { 'e', FORMAT_ENV },
*/
break;