1
0
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:
Witold Filipczyk 2007-04-18 16:19:18 +02:00 committed by Witold Filipczyk
parent df36759e80
commit 2a3be5260a

View File

@ -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