On Tue, Apr 24, 2007 at 09:54:32AM -0700, Steve Holmes wrote:
> I'm trying to test/develop some local CGI scripts that I would run
> directly with elinks and *NOT* with an http server. I have elinks
> properly configured to run CGI and when the script is initially loaded,
> all seems to be fine. However, when I submit the form with 'post'
> method, I get an internal err from elinks - something about form.c 99
> assertion failed.
>
> Anyone know anything about this? I'm currently using elinks 0.11 right
> now. Thanks for any help.
It's a guess. I have a problem with a assertion failure related to forms.
Maybe this patch helps.
check_html_form_hierarchy: Old code was buggy.
Old code caused the assertion failure on the shutdownday's page.
---
commit 00037979d2c0b78dcc1dc51d559ad364f987faf3
tree 4fd242edb5df049e523c8395ff70f7670e7bb8a3
parent 55c00e0a125c1aab935878c8e404e8938d058fe3
author Witold Filipczyk <[EMAIL PROTECTED]> Fri, 23 Mar 2007 13:16:39 +0100
committer Witold Filipczyk <[EMAIL PROTECTED]> Fri, 23 Mar 2007 13:16:39 +0100
src/document/html/renderer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c
index 96590d2..6dd72b2 100644
--- a/src/document/html/renderer.c
+++ b/src/document/html/renderer.c
@@ -1837,8 +1837,8 @@ check_html_form_hierarchy(struct part *part)
foreachsafe (fc, next, form_controls) {
foreach (form, document->forms) {
- if (fc->position < form->form_num
- || form->form_end < fc->position)
+ if (form->form_num <= fc->position
+ && fc->position <= form->form_end)
continue;
fc->form = form;
_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users