[project @ 2005-05-25 23:06:26 by jmb]

Fix textarea submission

svn path=/import/netsurf/; revision=1740
This commit is contained in:
John Mark Bell 2005-05-25 23:06:26 +00:00
parent d2fb8ffd97
commit b2918fc57b
1 changed files with 2 additions and 2 deletions

View File

@ -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)