lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev [PATCH to dev18] prevents sending disabled form fields


From: Vlad Harchev
Subject: lynx-dev [PATCH to dev18] prevents sending disabled form fields
Date: Mon, 31 Jan 2000 10:49:30 +0400 (SAMT)

* Don't perform submission of the content of disabled form fields -VH

 Expect huge offsets while applying this patch.

 Best regards,
  -Vlad

diff -ru old/src/GridText.c fixed/src/GridText.c
--- old/src/GridText.c  Sun Jan  9 06:26:18 2000
+++ fixed/src/GridText.c        Mon Jan 31 10:32:13 2000
@@ -10160,7 +10160,8 @@
     anchor_ptr = HTMainText->first_anchor;
     while (anchor_ptr) {
        if (anchor_ptr->link_type == INPUT_ANCHOR) {
-           if (anchor_ptr->input_field->number == form_number) {
+           if (anchor_ptr->input_field->number == form_number && 
+                       !anchor_ptr->input_field->disabled) {
 
                char *p;
                char * val;
@@ -10344,7 +10345,8 @@
      */
     while (anchor_ptr) {
        if (anchor_ptr->link_type == INPUT_ANCHOR) {
-           if (anchor_ptr->input_field->number == form_number) {
+           if (anchor_ptr->input_field->number == form_number &&
+                       !anchor_ptr->input_field->disabled) {
                char *p;
                int out_cs;
                form_ptr = anchor_ptr->input_field;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]