mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed problem with '&' in href links
SVN revision: 1274
This commit is contained in:
parent
ea42d8c13f
commit
2fc8ea874c
13
src/elogd.c
13
src/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 1.596 2005/03/24 12:54:05 ritt
|
||||||
|
Fixed problem with '&' in href links
|
||||||
|
|
||||||
Revision 1.595 2005/03/24 10:37:43 ritt
|
Revision 1.595 2005/03/24 10:37:43 ritt
|
||||||
Fixed problem with 'protect selection page' ans invalid authentication
|
Fixed problem with 'protect selection page' ans invalid authentication
|
||||||
|
|
||||||
@ -5677,7 +5680,15 @@ void rsputs2(const char *str)
|
|||||||
else
|
else
|
||||||
sprintf(return_buffer + j, "<a href=\"%s\">elog:%s</a>", link, link_text);
|
sprintf(return_buffer + j, "<a href=\"%s\">elog:%s</a>", link, link_text);
|
||||||
} else {
|
} else {
|
||||||
sprintf(return_buffer + j, "<a href=\"%s%s\">%s", key_list[l], link, key_list[l]);
|
sprintf(return_buffer + j, "<a href=\"%s", key_list[l]);
|
||||||
|
j += strlen(return_buffer + j);
|
||||||
|
strlen_retbuf = j;
|
||||||
|
|
||||||
|
/* link can contain special characters */
|
||||||
|
rsputs2(link);
|
||||||
|
j = strlen_retbuf;
|
||||||
|
|
||||||
|
sprintf(return_buffer + j, "\">%s", key_list[l]);
|
||||||
j += strlen(return_buffer + j);
|
j += strlen(return_buffer + j);
|
||||||
strlen_retbuf = j;
|
strlen_retbuf = j;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user