mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
forms: Buttons should not submit forms.
This reverts Commit: 6fe1a431f1
Sometimes scripts submit forms using buttons
I don't remember why I did previous change, but it was broken.
This commit is contained in:
parent
df36759e80
commit
2a3be5260a
@ -1143,6 +1143,8 @@ get_form_uri(struct session *ses, struct document_view *doc_view,
|
||||
if (fc->type == FC_RESET) {
|
||||
do_reset_form(doc_view, form);
|
||||
return NULL;
|
||||
} else if (fc->type == FC_BUTTON) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!form->action
|
||||
|
Loading…
Reference in New Issue
Block a user