[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>
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
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>
|
2002-11-09 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
|
||||||
|
|
||||||
* [w3m-dev 03388] meta refresh problem
|
* [w3m-dev 03388] meta refresh problem
|
||||||
@@ -4428,4 +4435,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.487 2002/11/08 16:01:18 ukai Exp $
|
$Id: ChangeLog,v 1.488 2002/11/08 16:07:03 ukai Exp $
|
||||||
|
|||||||
@@ -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
|
* HTML forms
|
||||||
*/
|
*/
|
||||||
@@ -484,11 +484,11 @@ input_textarea(FormItemList *fi)
|
|||||||
fmInit();
|
fmInit();
|
||||||
|
|
||||||
if (fi->readonly)
|
if (fi->readonly)
|
||||||
return;
|
goto input_end;
|
||||||
f = fopen(tmpf, "r");
|
f = fopen(tmpf, "r");
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
disp_err_message("Can't open temporary file", FALSE);
|
disp_err_message("Can't open temporary file", FALSE);
|
||||||
return;
|
goto input_end;
|
||||||
}
|
}
|
||||||
fi->value = Strnew();
|
fi->value = Strnew();
|
||||||
while (tmp = Strfgets(f), tmp->length > 0) {
|
while (tmp = Strfgets(f), tmp->length > 0) {
|
||||||
@@ -508,6 +508,7 @@ input_textarea(FormItemList *fi)
|
|||||||
Strcat(fi->value, tmp);
|
Strcat(fi->value, tmp);
|
||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
input_end:
|
||||||
unlink(tmpf);
|
unlink(tmpf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: main.c,v 1.122 2002/11/08 16:01:21 ukai Exp $ */
|
/* $Id: main.c,v 1.123 2002/11/08 16:07:07 ukai Exp $ */
|
||||||
#define MAINPROGRAM
|
#define MAINPROGRAM
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@@ -3091,7 +3091,8 @@ _followForm(int submit)
|
|||||||
disp_message_nsec("Read only field!", FALSE, 1, TRUE, FALSE);
|
disp_message_nsec("Read only field!", FALSE, 1, TRUE, FALSE);
|
||||||
return;
|
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)
|
if (p == NULL)
|
||||||
return;
|
return;
|
||||||
fi->value = Strnew_charp(p);
|
fi->value = Strnew_charp(p);
|
||||||
|
|||||||
Reference in New Issue
Block a user