Mercurial > hg > nginx
comparison src/http/ngx_http_script.c @ 2498:d3357bf23a5e
fix /?new=arg?old=arg redirect case
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 10 Feb 2009 16:03:42 +0000 |
parents | da6f70bb41f0 |
children | 912ce4113f21 |
comparison
equal
deleted
inserted
replaced
2497:1ab9cef4ff6c | 2498:d3357bf23a5e |
---|---|
242 continue; | 242 continue; |
243 } | 243 } |
244 | 244 |
245 name.data = &sc->source->data[i]; | 245 name.data = &sc->source->data[i]; |
246 | 246 |
247 while (i < sc->source->len | 247 while (i < sc->source->len) { |
248 && sc->source->data[i] != '$' | 248 |
249 && !(sc->source->data[i] == '?' && sc->compile_args)) | 249 if (sc->source->data[i] == '$') { |
250 { | 250 break; |
251 } | |
252 | |
253 if (sc->source->data[i] == '?') { | |
254 | |
255 sc->args = 1; | |
256 | |
257 if (sc->compile_args) { | |
258 break; | |
259 } | |
260 } | |
261 | |
251 i++; | 262 i++; |
252 name.len++; | 263 name.len++; |
253 } | 264 } |
254 | 265 |
255 sc->size += name.len; | 266 sc->size += name.len; |