From 817bc1ed4f12f10f7df50b7f64eb90a0658c0e29 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 10 Dec 2007 13:26:48 +0000 Subject: [PATCH] Convert "elog:/" to "/" for HTML encoding SVN revision: 1976 --- src/elogd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index e8f113de..32cffc11 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -21381,11 +21381,14 @@ void submit_elog(LOGBOOK * lbs) /*---- replace relative elog:/x link by elog:n/x link */ if (stristr(getparam("text"), "elog:/")) { p = getparam("text"); - sprintf(str, "elog:%d/", message_id); + if (stricmp(encoding, "HTML") == 0) { + sprintf(str, "%d/", message_id); + } else + sprintf(str, "elog:%d/", message_id); strsubst(p, TEXT_SIZE, "elog:/", str); el_submit(lbs, message_id, TRUE, date, attr_list, attrib, n_attr, p, in_reply_to, reply_to, - isparam("encoding") ? getparam("encoding") : "plain", att_file, TRUE, NULL); + encoding, att_file, TRUE, NULL); } /*---- email notifications ----*/