From 73fb7e878fac4ba302479e57554f2f688e306361 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 6 Dec 2012 23:03:53 +0000 Subject: Allow the complex value to be defined as an empty string. This makes conversion from strings to complex values possible without the loss of functionality. --- src/http/ngx_http_core_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http/ngx_http_core_module.c') diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index faecaddc4..a7db74b98 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -4593,7 +4593,7 @@ ngx_http_core_error_page(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ngx_str_null(&args); - if (cv.lengths == NULL && uri.data[0] == '/') { + if (cv.lengths == NULL && uri.len && uri.data[0] == '/') { p = (u_char *) ngx_strchr(uri.data, '?'); if (p) { -- cgit