summaryrefslogtreecommitdiff
path: root/render/html_interaction.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-17 20:26:00 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-17 20:26:00 +0100
commit6d39b569c700ddfa405c5c9a7a49320be2945997 (patch)
tree23867f005e9fa7fc59c1d957cb430497cd74c1c4 /render/html_interaction.c
parentbe00425776514fccddd79d69caa8ed01dc172779 (diff)
downloadnetsurf-6d39b569c700ddfa405c5c9a7a49320be2945997.tar.gz
netsurf-6d39b569c700ddfa405c5c9a7a49320be2945997.tar.bz2
Pass content containing form's nsurl to form_submit, instead of its hlcache_handle. Avoid dereferencing bw in html content handlers.
Diffstat (limited to 'render/html_interaction.c')
-rw-r--r--render/html_interaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/html_interaction.c b/render/html_interaction.c
index 1365d77e0..4d21b222c 100644
--- a/render/html_interaction.c
+++ b/render/html_interaction.c
@@ -839,7 +839,7 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
*/
switch (action) {
case ACTION_SUBMIT:
- form_submit(bw->current_content,
+ form_submit(content_get_url(c),
browser_window_find_target(bw, target, mouse),
gadget->form, gadget);
break;