From 452629ab8507a79d9406fa14633ef5fed3f01d24 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 20 Mar 2005 20:38:40 +0000 Subject: [PATCH] [project @ 2005-03-20 20:38:40 by jmb] Fix stupidity relating to URL matching svn path=/import/netsurf/; revision=1556 --- desktop/browser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/browser.c b/desktop/browser.c index 9dcdfda21..ae6dd3b17 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -197,7 +197,9 @@ void browser_window_go_post(struct browser_window *bw, const char *url, */ if (bw->current_content && strncasecmp(bw->current_content->url, - url2, hash - url2) == 0) { + url2, hash - url2) == 0 && + strlen(bw->current_content->url) == + (unsigned int)(hash - url2)) { free(url2); browser_window_update(bw, false); return;