Commit c97b6157 authored by Sergey Lyubka's avatar Sergey Lyubka Committed by Cesanta Bot

Fix mg_parse_uri()

PUBLISHED_FROM=e5b829d93ecf946e5bdbbf33132be7068ffe0dd2
parent 9ab6d084
......@@ -5407,7 +5407,7 @@ int mg_parse_uri(const struct mg_str uri, struct mg_str *scheme,
case P_USER_INFO:
ruser_info.p = p;
for (; p < end; p++) {
if (*p == '@' || *p == '[') {
if (*p == '@' || *p == '[' || *p == '/') {
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment