From 4f0aaa166e245aba08c574c0b4b8ae32bbc535dc Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 10 Dec 2006 11:53:00 +0100 Subject: [PATCH] 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 ] --- src/protocol/uri.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/protocol/uri.c b/src/protocol/uri.c index 7dca889d9..bc4bb1341 100644 --- a/src/protocol/uri.c +++ b/src/protocol/uri.c @@ -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. */