diff src/http/ngx_http_core_module.c @ 2685:6c8a5165ed2a

fix r2590: error_page made an external redirect without query string
author Igor Sysoev <igor@sysoev.ru>
date Tue, 07 Apr 2009 15:50:08 +0000
parents cb96a60c8f10
children aa95c69c3068
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -3875,7 +3875,7 @@ ngx_http_core_error_page(ngx_conf_t *cf,
     args.len = 0;
     args.data = NULL;
 
-    if (cv.lengths == NULL) {
+    if (cv.lengths == NULL && uri.data[0] == '/') {
         p = (u_char *) ngx_strchr(uri.data, '?');
 
         if (p) {