1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04: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:
Jonas Fonseca 2006-12-10 11:53:00 +01:00 committed by Witold Filipczyk
parent d5e57fc2dd
commit fa786070f0

View File

@ -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. */