summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-08-31 20:29:11 +0000
committerJames Bursa <james@netsurf-browser.org>2005-08-31 20:29:11 +0000
commit1481f4b7f08939bfd77161e960a57752a41f2aab (patch)
tree07b57a332c33e020fba5fbf7e8c336ccb6f5e7fb /render
parent005c5f32a82b5969e786d4d028f2e4ba779b5053 (diff)
downloadnetsurf-1481f4b7f08939bfd77161e960a57752a41f2aab.tar.gz
netsurf-1481f4b7f08939bfd77161e960a57752a41f2aab.tar.bz2
[project @ 2005-08-31 20:29:11 by bursa]
Fix submitting of forms with more than one image button. svn path=/import/netsurf/; revision=1856
Diffstat (limited to 'render')
-rw-r--r--render/form.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/render/form.c b/render/form.c
index a15b6608c..5fb5c6769 100644
--- a/render/form.c
+++ b/render/form.c
@@ -299,6 +299,11 @@ bool form_successful_controls(struct form *form,
case GADGET_IMAGE: {
/* image */
+ if (control != submit_button)
+ /* only the activated submit button
+ * is successful */
+ continue;
+
const size_t len = strlen(control->name) + 3;
/* x */