summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_geo_module.c7
-rw-r--r--src/stream/ngx_stream_geo_module.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c
index 619a5fde8..5018e1abb 100644
--- a/src/http/modules/ngx_http_geo_module.c
+++ b/src/http/modules/ngx_http_geo_module.c
@@ -645,7 +645,12 @@ ngx_http_geo(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
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;
diff --git a/src/stream/ngx_stream_geo_module.c b/src/stream/ngx_stream_geo_module.c
index c109dc72e..316de9286 100644
--- a/src/stream/ngx_stream_geo_module.c
+++ b/src/stream/ngx_stream_geo_module.c
@@ -605,7 +605,12 @@ ngx_stream_geo(ngx_conf_t *cf, ngx_command_t *dummy, void *conf)
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;
}