fix /?new=arg?old=arg redirect case

This commit is contained in:
Igor Sysoev 2009-02-10 16:03:42 +00:00
parent c43beec76f
commit 9786016076

View File

@ -244,10 +244,21 @@ ngx_http_script_compile(ngx_http_script_compile_t *sc)
name.data = &sc->source->data[i]; name.data = &sc->source->data[i];
while (i < sc->source->len while (i < sc->source->len) {
&& sc->source->data[i] != '$'
&& !(sc->source->data[i] == '?' && sc->compile_args)) if (sc->source->data[i] == '$') {
{ break;
}
if (sc->source->data[i] == '?') {
sc->args = 1;
if (sc->compile_args) {
break;
}
}
i++; i++;
name.len++; name.len++;
} }