mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix /?new=arg?old=arg redirect case
This commit is contained in:
parent
c43beec76f
commit
9786016076
@ -244,10 +244,21 @@ ngx_http_script_compile(ngx_http_script_compile_t *sc)
|
||||
|
||||
name.data = &sc->source->data[i];
|
||||
|
||||
while (i < sc->source->len
|
||||
&& sc->source->data[i] != '$'
|
||||
&& !(sc->source->data[i] == '?' && sc->compile_args))
|
||||
{
|
||||
while (i < sc->source->len) {
|
||||
|
||||
if (sc->source->data[i] == '$') {
|
||||
break;
|
||||
}
|
||||
|
||||
if (sc->source->data[i] == '?') {
|
||||
|
||||
sc->args = 1;
|
||||
|
||||
if (sc->compile_args) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
i++;
|
||||
name.len++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user