From f465a2bcd68349d032af096834d8fbe61516d7e2 Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Mon, 7 Jun 2010 02:14:41 +0200 Subject: [PATCH] Small improvement over previous patch Sergey A. Osokin provided this small improvement for the his previous patch regarding the "zero_in_uri" being absent in newer development versions of Nginx. Signed-off-by: Adrian Perez --- ngx_http_fancyindex_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index 435485f..2dd8a04 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -591,6 +591,11 @@ ngx_http_fancyindex_handler(ngx_http_request_t *r) } /* TODO: Win32 */ +#if defined(nginx_version) && nginx_version < 8038 + if (r->zero_in_uri) { + return NGX_DECLINED; + } +#endif if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) { return NGX_DECLINED;