[project @ 2005-03-20 20:38:40 by jmb]

Fix stupidity relating to URL matching

svn path=/import/netsurf/; revision=1556
This commit is contained in:
John Mark Bell 2005-03-20 20:38:40 +00:00
parent 7cf3d4dde2
commit 452629ab85
1 changed files with 3 additions and 1 deletions

View File

@ -197,7 +197,9 @@ void browser_window_go_post(struct browser_window *bw, const char *url,
*/ */
if (bw->current_content && if (bw->current_content &&
strncasecmp(bw->current_content->url, strncasecmp(bw->current_content->url,
url2, hash - url2) == 0) { url2, hash - url2) == 0 &&
strlen(bw->current_content->url) ==
(unsigned int)(hash - url2)) {
free(url2); free(url2);
browser_window_update(bw, false); browser_window_update(bw, false);
return; return;