mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Prevent crash if logbook "global" is accessed and a logbook "global" is defined accidentally in config file
SVN revision: 1747
This commit is contained in:
parent
8a6096353a
commit
e93b0091cf
@ -24555,7 +24555,7 @@ void server_loop(void)
|
|||||||
|
|
||||||
goto finished;
|
goto finished;
|
||||||
} else {
|
} else {
|
||||||
if (!strieq(logbook, str) && logbook[0]) {
|
if (logbook[0] && (!strieq(logbook, str) || strieq(logbook, "global"))) {
|
||||||
|
|
||||||
/* check for top group */
|
/* check for top group */
|
||||||
sprintf(str, "Top group %s", logbook);
|
sprintf(str, "Top group %s", logbook);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user