diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-03 12:04:48 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-03 12:04:48 +0000 |
commit | ad6fcea6b008638ca532436ecf8ba9fe7e41ffdd (patch) | |
tree | 7928f5211a6cd644dcfd764b1c67cf3f6b8ed121 /render/directory.c | |
parent | eb2c2e3f63056e7f8b992f17f94a9418ac311a0f (diff) | |
download | netsurf-ad6fcea6b008638ca532436ecf8ba9fe7e41ffdd.tar.gz netsurf-ad6fcea6b008638ca532436ecf8ba9fe7e41ffdd.tar.bz2 |
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
Diffstat (limited to 'render/directory.c')
-rw-r--r-- | render/directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
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), "<a href=\"..\">[..]</a>\n"); htmlParseChunk(c->data.html.parser, buffer, |