mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Made reply_to links absolute
SVN revision: 1420
This commit is contained in:
parent
252e0d3bbf
commit
868f88bbb6
18
src/elogd.c
18
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.697 2005/07/05 20:49:22 ritt
|
||||||
|
Made reply_to links absolute
|
||||||
|
|
||||||
Revision 1.696 2005/07/05 20:39:16 ritt
|
Revision 1.696 2005/07/05 20:39:16 ritt
|
||||||
Fixed <br> for quotes
|
Fixed <br> for quotes
|
||||||
|
|
||||||
@ -19959,10 +19962,10 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command)
|
|||||||
if (email) {
|
if (email) {
|
||||||
compose_base_url(lbs, str, sizeof(str));
|
compose_base_url(lbs, str, sizeof(str));
|
||||||
sprintf(str+strlen(str), "%d", message_id);
|
sprintf(str+strlen(str), "%d", message_id);
|
||||||
rsprintf("ELOG: <a href=\"%s\"><b>%s</b></a> ", str, lbs->name);
|
rsprintf("%s: <b>%s</b> ", loc("Logbook"), lbs->name);
|
||||||
}
|
rsprintf("%s: <a href=\"%s\"><b>%d</b></a>", loc("Message ID"), str, message_id);
|
||||||
|
} else
|
||||||
rsprintf("%s: <b>%s</b>\n", loc("Message ID"), display);
|
rsprintf("%s: <b>%s</b>\n", loc("Message ID"), display);
|
||||||
|
|
||||||
/*---- display date ----*/
|
/*---- display date ----*/
|
||||||
|
|
||||||
@ -19980,7 +19983,8 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command)
|
|||||||
if (message_error != EL_FILE_ERROR && (reply_tag[0] || orig_tag[0])) {
|
if (message_error != EL_FILE_ERROR && (reply_tag[0] || orig_tag[0])) {
|
||||||
|
|
||||||
if (orig_tag[0]) {
|
if (orig_tag[0]) {
|
||||||
sprintf(ref, "%s", orig_tag);
|
compose_base_url(lbs, ref, sizeof(ref));
|
||||||
|
sprintf(ref+strlen(ref), "%s", orig_tag);
|
||||||
rsprintf(" %s: ", loc("In reply to"));
|
rsprintf(" %s: ", loc("In reply to"));
|
||||||
rsprintf("<b><a href=\"%s\">%s</a></b>\n", ref, orig_tag);
|
rsprintf("<b><a href=\"%s\">%s</a></b>\n", ref, orig_tag);
|
||||||
}
|
}
|
||||||
@ -19989,7 +19993,9 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command)
|
|||||||
|
|
||||||
p = strtok(reply_tag, ",");
|
p = strtok(reply_tag, ",");
|
||||||
do {
|
do {
|
||||||
rsprintf("<a href=\"%s\">%s</a>\n", p, p);
|
compose_base_url(lbs, ref, sizeof(ref));
|
||||||
|
sprintf(ref+strlen(ref), "%s", p);
|
||||||
|
rsprintf("<a href=\"%s\">%s</a>\n", ref, p);
|
||||||
|
|
||||||
p = strtok(NULL, ",");
|
p = strtok(NULL, ",");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user