Browse Source

[mod_staticfile] search ext array if not empty

personal/stbuehler/fix-fdevent
Glenn Strauss 3 years ago
parent
commit
b8532fe073
  1. 2
      src/mod_staticfile.c

2
src/mod_staticfile.c

@ -185,7 +185,7 @@ URIHANDLER_FUNC(mod_staticfile_subrequest) {
}
/* ignore certain extensions */
if (array_match_value_suffix(p->conf.exclude_ext, con->physical.path)) {
if (0 != p->conf.exclude_ext->used && array_match_value_suffix(p->conf.exclude_ext, con->physical.path)) {
if (con->conf.log_request_handling) {
log_error_write(srv, __FILE__, __LINE__, "s", "-- NOT handling file as static file, extension forbidden");
}

Loading…
Cancel
Save