diff options
author | corvid <corvid@lavabit.com> | 2010-03-29 06:05:28 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-03-29 06:05:28 +0000 |
commit | c4712474839f8b55fe4b5ecfdda5963ff9990ace (patch) | |
tree | 1e42cdfaf5d77cabfa1ca59d84f28d7337d2060c | |
parent | 24c5ed1270eb906a9721ef41387c733c18af9c21 (diff) |
Disable inputs that aren't inside a form.
RogutÄs was able to get a crash by using a SELECT outside of a form
before a stylesheet-induced repush()
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-March/007407.html
(Earlier thread where inputs in forms were disabled when stylesheets pending:
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-April/006310.html )
-rw-r--r-- | src/form.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/form.cc b/src/form.cc index a33e74ba..41c42a85 100644 --- a/src/form.cc +++ b/src/form.cc @@ -248,6 +248,8 @@ static void Html_add_input(DilloHtml *html, DilloHtmlInputType type, int ni = html->inputs_outside_form->size(); html->inputs_outside_form->increase(); html->inputs_outside_form->set(ni, input); + + input->setEnabled(false); } } |