mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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
d5e57fc2dd
commit
fa786070f0
@ -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