From d1eb18f62ef6162a61fe4531faaff5fafc458604 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 18 Aug 2004 01:45:29 +0000 Subject: [project @ 2004-08-18 01:45:29 by jmb] Restrict last change to hidden inputs only - breaks sf.net bug tracker otherwise svn path=/import/netsurf/; revision=1243 --- render/form.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'render/form.c') diff --git a/render/form.c b/render/form.c index d5704bc6f..bfd9664c3 100644 --- a/render/form.c +++ b/render/form.c @@ -131,18 +131,14 @@ bool form_successful_controls(struct form *form, if (!control->name) continue; - /* ignore controls with no value */ - /* this fixes ebay silliness - * From the spec: - * "If a control doesn't have a current value when the - * form is submitted, user agents are not required to - * treat it as a successful control" - */ - if (!control->value) - continue; - switch (control->type) { case GADGET_HIDDEN: + /* ignore hidden controls with no value */ + /* this fixes ebay silliness */ + if (!control->value) + continue; + + /* fall through */ case GADGET_TEXTBOX: case GADGET_PASSWORD: value = strdup(control->value); -- cgit v1.2.3