Fixed bug with topgroup initialization

SVN revision: 837
This commit is contained in:
Stefan Ritt 2004-03-19 10:30:56 +00:00
parent 32ec7f3ec5
commit 14295e6668

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.301 2004/03/19 10:30:56 midas
Fixed bug with topgroup initialization
Revision 1.300 2004/03/17 21:11:04 midas Revision 1.300 2004/03/17 21:11:04 midas
Removed debug print Removed debug print
@ -17036,6 +17039,9 @@ void server_loop(int tcp_port, int daemon)
strcpy(net_buffer, "GET / HTTP/1.0\r\n\r\n"); strcpy(net_buffer, "GET / HTTP/1.0\r\n\r\n");
} }
/* initialize topgroups */
setcfg_topgroup("");
p = strchr(net_buffer, '/') + 1; p = strchr(net_buffer, '/') + 1;
logbook[0] = 0; logbook[0] = 0;
for (i = 0; *p && *p != '/' && *p != '?' && *p != ' '; i++) for (i = 0; *p && *p != '/' && *p != '?' && *p != ' '; i++)