mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +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);
|
strlcpy(value[i++], host_name, NAME_LENGTH);
|
||||||
|
|
||||||
/* add user names */
|
/* 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);
|
strlcpy(value[i++], getparam("unm"), NAME_LENGTH);
|
||||||
}
|
else
|
||||||
if (isparam("full_name")) {
|
strlcpy(value[i++], loc("Anonymous"), NAME_LENGTH);
|
||||||
strcpy(list[i], "long_name");
|
|
||||||
|
strcpy(list[i], "long_name");
|
||||||
|
if (isparam("full_name"))
|
||||||
strlcpy(value[i++], getparam("full_name"), NAME_LENGTH);
|
strlcpy(value[i++], getparam("full_name"), NAME_LENGTH);
|
||||||
}
|
else
|
||||||
|
strlcpy(value[i++], loc("Anonymous"), NAME_LENGTH);
|
||||||
|
|
||||||
/* add email */
|
/* add email */
|
||||||
if (isparam("user_email")) {
|
if (isparam("user_email")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user