From ad6fcea6b008638ca532436ecf8ba9fe7e41ffdd Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 3 Feb 2008 12:04:48 +0000 Subject: Add url_fragment to extract fragment from URL Optionally allow url_compare to ignore fragments in comparison Fix handling of url_compare result in a few places Fix redirects which contain fragments in the Location header svn path=/trunk/netsurf/; revision=3826 --- render/directory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/directory.c') diff --git a/render/directory.c b/render/directory.c index 2f280fabe..61abf1b1f 100644 --- a/render/directory.c +++ b/render/directory.c @@ -96,8 +96,8 @@ bool directory_convert(struct content *c, int width, int height) { res = url_parent(c->url, &up); if (res == URL_FUNC_OK) { - res = url_compare(c->url, up, &compare); - if (!compare) { + res = url_compare(c->url, up, false, &compare); + if ((res == URL_FUNC_OK) && !compare) { snprintf(buffer, sizeof(buffer), "[..]\n"); htmlParseChunk(c->data.html.parser, buffer, -- cgit v1.2.3