diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-08 16:07:03 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-08 16:07:03 +0000 |
commit | ca5ffe8720ee7f3f8eedc729b1eab5837178bcb4 (patch) | |
tree | cb19591f5c2e2fea6ae1fa65f22ef6e833258725 /form.c | |
parent | update TODO (diff) | |
download | w3m-ca5ffe8720ee7f3f8eedc729b1eab5837178bcb4.tar.gz w3m-ca5ffe8720ee7f3f8eedc729b1eab5837178bcb4.zip |
[w3m-dev 03390] some fixes related with form
* form.c (input_textarea): goto input_end
unlink(tmpf);
* main.c (_followForm): s/TEXT/Password/
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | form.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: form.c,v 1.18 2002/11/06 03:27:04 ukai Exp $ */ +/* $Id: form.c,v 1.19 2002/11/08 16:07:06 ukai Exp $ */ /* * HTML forms */ @@ -484,11 +484,11 @@ input_textarea(FormItemList *fi) fmInit(); if (fi->readonly) - return; + goto input_end; f = fopen(tmpf, "r"); if (f == NULL) { disp_err_message("Can't open temporary file", FALSE); - return; + goto input_end; } fi->value = Strnew(); while (tmp = Strfgets(f), tmp->length > 0) { @@ -508,6 +508,7 @@ input_textarea(FormItemList *fi) Strcat(fi->value, tmp); } fclose(f); + input_end: unlink(tmpf); } |