[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev [PATCH] don't trim trailing white spaces in input fields
From: |
Vlad Harchev |
Subject: |
lynx-dev [PATCH] don't trim trailing white spaces in input fields |
Date: |
Wed, 4 Apr 2001 16:37:43 +0500 (SAMST) |
Hi,
Here is a patch that disables trailing white spaces trimming in input fields.
This patch is merely a pointer of location that should be tweaked - I don't
have idea what to do with the code - remove it or just #ifdef 0.
Patch is for 2.8.4dev3
Best regards,
-Vlad
--- LYForms.c~ Sun May 7 11:49:41 2000
+++ LYForms.c Wed Apr 4 16:34:10 2001
@@ -763,6 +763,13 @@
HTUserMsg(FORM_TAIL_COMBINED_WITH_HEAD);
}
+#if 0
+ /* the trailing spaces may be meaningful in some cases (e.g.
+ * when the input's value is used as a prefix for something), so
+ * we should better assume that trailing whitespaces removal be
+ * performed by CGIs - VH
+ */
+
/*
* Remove trailing spaces
*
@@ -775,6 +782,7 @@
while ((p != form->value) && (p[-1] == ' '))
p--;
*p = '\0';
+#endif
/*
* If the field has been changed, assume that it is now in
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
- lynx-dev [PATCH] don't trim trailing white spaces in input fields,
Vlad Harchev <=