mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Convert "elog:/<n>" to "<ID>/<n>" for HTML encoding
SVN revision: 1976
This commit is contained in:
parent
023aab2018
commit
817bc1ed4f
@ -21381,11 +21381,14 @@ void submit_elog(LOGBOOK * lbs)
|
|||||||
/*---- replace relative elog:/x link by elog:n/x link */
|
/*---- replace relative elog:/x link by elog:n/x link */
|
||||||
if (stristr(getparam("text"), "elog:/")) {
|
if (stristr(getparam("text"), "elog:/")) {
|
||||||
p = getparam("text");
|
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);
|
strsubst(p, TEXT_SIZE, "elog:/", str);
|
||||||
el_submit(lbs, message_id, TRUE, date, attr_list, attrib, n_attr,
|
el_submit(lbs, message_id, TRUE, date, attr_list, attrib, n_attr,
|
||||||
p, in_reply_to, reply_to,
|
p, in_reply_to, reply_to,
|
||||||
isparam("encoding") ? getparam("encoding") : "plain", att_file, TRUE, NULL);
|
encoding, att_file, TRUE, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---- email notifications ----*/
|
/*---- email notifications ----*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user