mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-26 20:32:05 +03:00
[project @ 2004-04-01 18:41:53 by jmb]
Fix bad code. svn path=/import/netsurf/; revision=697
This commit is contained in:
parent
e4269c8903
commit
adc05e5240
@ -1420,8 +1420,11 @@ void browser_window_follow_link(struct browser_window *bw,
|
||||
break;
|
||||
}
|
||||
else if (click_boxes[i].box->gadget->type == GADGET_SUBMIT) {
|
||||
struct form *form;
|
||||
char *url, *href;
|
||||
href = click_boxes[i].box->gadget->form->action;
|
||||
form = click_boxes[i].box->gadget->form;
|
||||
if (!form) continue;
|
||||
href = form->action;
|
||||
if (!href) continue;
|
||||
url = url_join(href, bw->current_content->data.html.base_url);
|
||||
if (!url) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user