diff --git a/elogd.c b/elogd.c
index e937f01d..63f590fe 100755
--- a/elogd.c
+++ b/elogd.c
@@ -6,6 +6,11 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
+ Revision 1.6 2002/01/15 10:23:59 midas
+ - Remove "back" button from error display (NS4.7 does not support it)
+ - Fixed wrong URL in email notification
+ - Submission of new messages possible even if cookie expired during editing
+
Revision 1.5 2002/01/14 13:05:41 midas
- Check for JavaScript in error display
- Improved decoding of POST message (needed for lynx)
@@ -2791,6 +2796,7 @@ void show_error(char *error)
rsprintf("
", gt("Cell BGColor"));
+ /*
rsprintf("\n");
rsprintf("\n");
-
- /*
- rsprintf("\n", loc("Back"));
*/
+ rsprintf("%s\n", loc("Please use your browser's back button to go back"));
+
/*
- rsprintf("", loc("Back"));
+ rsprintf("\n");
*/
rsprintf("
\n\n");
@@ -5190,7 +5193,7 @@ int i, j, n, missing, first, index, n_attr, n_mail, suppress, status;
strcpy(subject, "New ELOG entry");
sprintf(mail_text+strlen(mail_text), "\r\n%s URL : %s%s/%s\r\n",
- elogd_full_url, loc("Logbook"), logbook_enc, tag);
+ loc("Logbook"), elogd_full_url, logbook_enc, tag);
if (getcfg(logbook, "Email message body", str) &&
atoi(str) == 1)
@@ -6752,16 +6755,18 @@ struct tm *gmt;
/*---- show ELog page --------------------------------------------*/
+ /* if password file given, check password and user name */
if (getcfg(logbook, "Password file", str))
{
- if (!check_user_password(logbook, getparam("unm"), getparam("upwd"), path))
- return;
+ /* don't check password for submit, since cookie might have been expired during editing */
+ if (!equal_ustring(command, loc("Submit")))
+ if (!check_user_password(logbook, getparam("unm"), getparam("upwd"), path))
+ return;
}
if (equal_ustring(command, loc("New")) ||
equal_ustring(command, loc("Edit")) ||
equal_ustring(command, loc("Reply")) ||
- equal_ustring(command, loc("Submit")) ||
equal_ustring(command, loc("Delete")))
{
sprintf(str, "%s?cmd=%s", path, command);