mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Implemented "Anonymous" substitution if no user is logged int
SVN revision: 1681
This commit is contained in:
parent
6900f4992f
commit
a30541010f
15
src/elogd.c
15
src/elogd.c
@ -7679,14 +7679,17 @@ int build_subst_list(LOGBOOK * lbs, char list[][NAME_LENGTH], char value[][NAME_
|
||||
strlcpy(value[i++], host_name, NAME_LENGTH);
|
||||
|
||||
/* add user names */
|
||||
if (isparam("unm")) {
|
||||
strcpy(list[i], "short_name");
|
||||
strcpy(list[i], "short_name");
|
||||
if (isparam("unm"))
|
||||
strlcpy(value[i++], getparam("unm"), NAME_LENGTH);
|
||||
}
|
||||
if (isparam("full_name")) {
|
||||
strcpy(list[i], "long_name");
|
||||
else
|
||||
strlcpy(value[i++], loc("Anonymous"), NAME_LENGTH);
|
||||
|
||||
strcpy(list[i], "long_name");
|
||||
if (isparam("full_name"))
|
||||
strlcpy(value[i++], getparam("full_name"), NAME_LENGTH);
|
||||
}
|
||||
else
|
||||
strlcpy(value[i++], loc("Anonymous"), NAME_LENGTH);
|
||||
|
||||
/* add email */
|
||||
if (isparam("user_email")) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user