mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
[project @ 2005-05-25 23:06:26 by jmb]
Fix textarea submission svn path=/import/netsurf/; revision=1740
This commit is contained in:
parent
d2fb8ffd97
commit
b2918fc57b
@ -442,7 +442,7 @@ char *form_textarea_value(struct form_control *textarea)
|
||||
/* find required length */
|
||||
for (text_box = textarea->box->children->children; text_box;
|
||||
text_box = text_box->next) {
|
||||
if (text_box->type == BOX_INLINE)
|
||||
if (text_box->type == BOX_TEXT)
|
||||
len += text_box->length + 1;
|
||||
else /* BOX_BR */
|
||||
len += 2;
|
||||
@ -454,7 +454,7 @@ char *form_textarea_value(struct form_control *textarea)
|
||||
return 0;
|
||||
for (text_box = textarea->box->children->children; text_box;
|
||||
text_box = text_box->next) {
|
||||
if (text_box->type == BOX_INLINE) {
|
||||
if (text_box->type == BOX_TEXT) {
|
||||
strncpy(s, text_box->text, text_box->length);
|
||||
s += text_box->length;
|
||||
if (text_box->next && text_box->next->type != BOX_BR)
|
||||
|
Loading…
Reference in New Issue
Block a user