diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2012-12-06 23:03:53 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2012-12-06 23:03:53 +0000 |
| commit | 73fb7e878fac4ba302479e57554f2f688e306361 (patch) | |
| tree | 63e8399b962d4d4aec21bab29fbc5b6c8d4b30c2 /src/http/ngx_http_core_module.c | |
| parent | 8e8201486cb52e929feb16446406253dfbe33e99 (diff) | |
| download | nginx-73fb7e878fac4ba302479e57554f2f688e306361.tar.gz nginx-73fb7e878fac4ba302479e57554f2f688e306361.tar.bz2 | |
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.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
| -rw-r--r-- | src/http/ngx_http_core_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
