mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 01:09:39 +03:00
[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
This commit is contained in:
parent
4ff7d738bc
commit
d1eb18f62e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user