mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Show attribute values as HTML if the contain <a> or <img> in listing
SVN revision: 798
This commit is contained in:
parent
a1bc909734
commit
5b9e969a8f
17
src/elogd.c
17
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.269 2004/02/26 13:16:34 midas
|
||||||
|
Show attribute values as HTML if the contain <a> or <img> in listing
|
||||||
|
|
||||||
Revision 1.268 2004/02/26 13:09:14 midas
|
Revision 1.268 2004/02/26 13:09:14 midas
|
||||||
Show attribute values as HTML if the contain <a> or <img>
|
Show attribute values as HTML if the contain <a> or <img>
|
||||||
|
|
||||||
@ -10398,9 +10401,17 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
rsprintf("<td class=\"%s\"><a href=\"%s\">", sclass, ref);
|
rsprintf("<td class=\"%s\">", sclass);
|
||||||
rsputs2(attrib[i]);
|
|
||||||
rsprintf(" </a></td>");
|
if (is_html(attrib[i]))
|
||||||
|
rsputs(attrib[i]);
|
||||||
|
else {
|
||||||
|
rsprintf("<a href=\"%s\">", ref);
|
||||||
|
rsputs2(attrib[i]);
|
||||||
|
rsprintf("</a>");
|
||||||
|
}
|
||||||
|
|
||||||
|
rsprintf(" </td>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user