mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Remove normalization of "//" to "/"
This patch changes normalize_uri() to no replace "//" with "/" in URIs. This fixed this bug but will also lead to possibility that duplicate entries can exist in ELinks' cache. ELinks might be able to detect in another way by hashing the content or something. [ From attachment 310 of bug 744. --KON ]
This commit is contained in:
parent
b9b0088a86
commit
4f0aaa166e
@ -759,10 +759,6 @@ normalize_uri(struct uri *uri, unsigned char *uristring)
|
||||
continue;
|
||||
}
|
||||
|
||||
} else if (is_uri_dir_sep(uri, src[1])) {
|
||||
/* // - ignore first '/'. */
|
||||
src += 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
/* We don't want to access memory past the NUL char. */
|
||||
|
Loading…
Reference in New Issue
Block a user