summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-02-04 02:23:08 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2019-02-04 03:01:33 -0500
commitb8532fe073f06b016bb3bdea535b726ead3db69e (patch)
tree8af105a292202f63fa519478927a0b76ebe51253
parentc8f96585367189815f81963d0f9d10e2c29bac4e (diff)
downloadlighttpd1.4-b8532fe073f06b016bb3bdea535b726ead3db69e.tar.gz
lighttpd1.4-b8532fe073f06b016bb3bdea535b726ead3db69e.zip
[mod_staticfile] search ext array if not empty
-rw-r--r--src/mod_staticfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_staticfile.c b/src/mod_staticfile.c
index bf783a21..d4fa2c81 100644
--- a/src/mod_staticfile.c
+++ b/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");
}