fix /?new=arg?old=arg redirect case
Igor Sysoev
13 years ago
243 | 243 | |
244 | 244 | name.data = &sc->source->data[i]; |
245 | 245 | |
246 | while (i < sc->source->len | |
247 | && sc->source->data[i] != '$' | |
248 | && !(sc->source->data[i] == '?' && sc->compile_args)) | |
249 | { | |
246 | while (i < sc->source->len) { | |
247 | ||
248 | if (sc->source->data[i] == '$') { | |
249 | break; | |
250 | } | |
251 | ||
252 | if (sc->source->data[i] == '?') { | |
253 | ||
254 | sc->args = 1; | |
255 | ||
256 | if (sc->compile_args) { | |
257 | break; | |
258 | } | |
259 | } | |
260 | ||
250 | 261 | i++; |
251 | 262 | name.len++; |
252 | 263 | } |