The "include" directive should be able to include multiple files if
given a filename mask.
Completes remaining changes introduced in
da4ffd8.
Closes: https://github.com/nginx/nginx/issues/1165
if (ngx_strcmp(value[0].data, "include") == 0) {
- rv = ngx_http_geo_include(cf, ctx, &value[1]);
+ if (strpbrk((char *) value[1].data, "*?[") == NULL) {
+ rv = ngx_http_geo_include(cf, ctx, &value[1]);
+
+ } else {
+ rv = ngx_conf_include(cf, dummy, conf);
+ }
goto done;
if (ngx_strcmp(value[0].data, "include") == 0) {
- rv = ngx_stream_geo_include(cf, ctx, &value[1]);
+ if (strpbrk((char *) value[1].data, "*?[") == NULL) {
+ rv = ngx_stream_geo_include(cf, ctx, &value[1]);
+
+ } else {
+ rv = ngx_conf_include(cf, dummy, conf);
+ }
goto done;
}