Made 'elog:<logbook>/<id>' reference work

SVN revision: 172
This commit is contained in:
2002-07-11 07:22:42 +00:00
parent e8211d516b
commit b23b9c5217
+8 -1
View File
@@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
Revision 2.42 2002/07/11 07:22:42 midas
Made 'elog:<logbook>/<id>' reference work
Revision 2.41 2002/07/09 07:37:37 midas
Fixed bug that 'last xx entries?mode=threaded' was displayed
@@ -2662,7 +2665,11 @@ char *p, link[256];
link[k] = 0;
i--;
sprintf(return_buffer+j, "<a href=\"%s\">elog:%s</a>", link, link);
/* if link contains '/' (reference to other logbook), add ".." in front */
if (strchr(link, '/'))
sprintf(return_buffer+j, "<a href=\"../%s\">elog:%s</a>", link, link);
else
sprintf(return_buffer+j, "<a href=\"%s\">elog:%s</a>", link, link);
j += strlen(return_buffer+j);
}
else