Klaus Demo nginx / c239da5
fix case when URL has no port, but has ":" in URI part, the bug has been introduced in r2204 Igor Sysoev 13 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
263263
264264 port = ngx_strlchr(host, last, ':');
265265
266 uri = ngx_strlchr(port ? port : host, last, '/');
266 uri = ngx_strlchr(host, last, '/');
267267
268268 if (uri) {
269269 if (u->listen || !u->uri_part) {
275275 u->uri.data = uri;
276276
277277 last = uri;
278
279 if (uri < port) {
280 port = NULL;
281 }
278282 }
279283
280284 if (port) {