Fix mg_parse_uri()

PUBLISHED_FROM=e5b829d93ecf946e5bdbbf33132be7068ffe0dd2
This commit is contained in:
Sergey Lyubka 2017-11-28 15:48:29 +00:00 committed by Cesanta Bot
parent 9ab6d084df
commit c97b615785

View File

@ -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;
}
}