diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2006-02-24 20:43:45 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2006-02-24 20:43:45 +0000 |
commit | 44d192c76255fc9840e4c81f49abd05474309345 (patch) | |
tree | df1d55853d8ee63b81608c0f620c85a5bc228f78 /desktop | |
parent | 86f249e8c9228e498b4458bef5c299ea8155e482 (diff) | |
download | netsurf-44d192c76255fc9840e4c81f49abd05474309345.tar.gz netsurf-44d192c76255fc9840e4c81f49abd05474309345.tar.bz2 |
[project @ 2006-02-24 20:43:45 by jmb]
Fix broken fragment handling which prevented form submission.
svn path=/import/netsurf/; revision=2094
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/browser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 61d2cc490..eb354d047 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -197,9 +197,10 @@ void browser_window_go_post(struct browser_window *bw, const char *url, if (hash) { bw->frag_id = strdup(hash+1); /* if we're simply moving to another ID on the same page, - * don't bother to fetch, just update the window + * don't bother to fetch, just update the window. */ - if (bw->current_content && bw->current_content->url && + if (!post_urlenc && !post_multipart && !strchr(url2, '?') && + bw->current_content && bw->current_content->url && strncasecmp(bw->current_content->url, url2, hash - url2) == 0 && strlen(bw->current_content->url) == |