w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 5e1873a356c6da10db6cdd37de943deb2e6fc45b
parent 28e080698196676290b6111c66b2f3e95c03aebe
Author: ukai <ukai>
Date:   Fri,  8 Nov 2002 16:07:03 +0000

[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:
MChangeLog | 7+++++++
Mform.c | 5+++--
Mmain.c | 3++-
3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,12 @@ 2002-11-09 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * [w3m-dev 03390] some fixes related with form + * form.c (input_textarea): goto input_end + unlink(tmpf); + * main.c (_followForm): s/TEXT/Password/ + +2002-11-09 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * [w3m-dev 03388] meta refresh problem * fm.h (AL_IMPLICIT_DONE): 3->4 (AL_ONCE): 8 diff --git a/form.c b/form.c @@ -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); } diff --git a/main.c b/main.c @@ -3091,7 +3091,8 @@ _followForm(int submit) disp_message_nsec("Read only field!", FALSE, 1, TRUE, FALSE); return; } - p = inputLine("TEXT:", fi->value ? fi->value->ptr : NULL, IN_PASSWORD); + p = inputLine("Password:", fi->value ? fi->value->ptr : NULL, + IN_PASSWORD); if (p == NULL) return; fi->value = Strnew_charp(p);