mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Made 'elog:<logbook>/<id>' reference work
SVN revision: 172
This commit is contained in:
parent
e8211d516b
commit
b23b9c5217
9
elogd.c
9
elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$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
|
Revision 2.41 2002/07/09 07:37:37 midas
|
||||||
Fixed bug that 'last xx entries?mode=threaded' was displayed
|
Fixed bug that 'last xx entries?mode=threaded' was displayed
|
||||||
|
|
||||||
@ -2662,7 +2665,11 @@ char *p, link[256];
|
|||||||
link[k] = 0;
|
link[k] = 0;
|
||||||
i--;
|
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);
|
j += strlen(return_buffer+j);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user