mirror of
https://github.com/nginx/nginx.git
synced 2026-07-01 22:32:04 +00:00
r2499 merge:
fix /?new=arg?old=arg redirect case
This commit is contained in:
parent
af2af8d284
commit
7ca140c630
1 changed files with 15 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue