Browse Source

mod_staticfile: add debug output if we ignore a file with static-file.exclude-extensions (fixes #2215)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2736 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.27
Stefan Bühler 12 years ago
parent
commit
165de1331b
  1. 1
      NEWS
  2. 3
      src/mod_staticfile.c

1
NEWS

@ -18,6 +18,7 @@ NEWS
* Fix two compiler warnings
* mod_accesslog: fix %p for ipv6 sockets (fixes #2228, thx jo.henke)
* mod_fastcgi: Send 502 "Bad Gateway" if we couldn't open the file for X-Sendfile (fixes #2226)
* mod_staticfile: add debug output if we ignore a file with static-file.exclude-extensions (fixes #2215)
- 1.4.26 - 2010-02-07
* Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105)

3
src/mod_staticfile.c

@ -385,6 +385,9 @@ URIHANDLER_FUNC(mod_staticfile_subrequest) {
if (ds->value->used == 0) continue;
if (buffer_is_equal_right_len(con->physical.path, ds->value, ds->value->used - 1)) {
if (con->conf.log_request_handling) {
log_error_write(srv, __FILE__, __LINE__, "s", "-- NOT handling file as static file, extension forbidden");
}
return HANDLER_GO_ON;
}
}

Loading…
Cancel
Save