summaryrefslogtreecommitdiff
path: root/render/directory.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-02-03 12:04:48 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-02-03 12:04:48 +0000
commitad6fcea6b008638ca532436ecf8ba9fe7e41ffdd (patch)
tree7928f5211a6cd644dcfd764b1c67cf3f6b8ed121 /render/directory.c
parenteb2c2e3f63056e7f8b992f17f94a9418ac311a0f (diff)
downloadnetsurf-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.c4
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,