mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 07:28:13 +08:00
Fix mg_parse_uri()
PUBLISHED_FROM=e5b829d93ecf946e5bdbbf33132be7068ffe0dd2
This commit is contained in:
parent
9ab6d084df
commit
c97b615785
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user