From: Art Cancro Date: Tue, 3 Mar 2009 03:42:29 +0000 (+0000) Subject: * When converting cid: URL's in to /webcit/mimepart... URL's, prefix the inserted... X-Git-Tag: v7.86~1387 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=177580e5d6d4bd66ec718b2fe479906f7fa0c8b3 * When converting cid: URL's in to /webcit/mimepart... URL's, prefix the inserted 'src=' with an additional space. Sometimes it's needed when other parameters such as alt text appear prior to the src= declaration, and in cases where it's not needed, the extra space won't hurt anything. --- diff --git a/webcit/html2html.c b/webcit/html2html.c index e5545356d..c1c2b64a5 100644 --- a/webcit/html2html.c +++ b/webcit/html2html.c @@ -411,7 +411,7 @@ void output_html(const char *supplied_charset, int treat_as_wiki, int msgnum, St /* add in /webcit/mimepart//CID/ trailing / stops dumb URL filters getting excited */ StrBufAppendPrintf(converted_msg, - "src=\"/webcit/mimepart/%d/",msgnum); + " src=\"/webcit/mimepart/%d/",msgnum); StrBufAppendBufPlain(converted_msg, cid_start, cid_end - cid_start, 0); StrBufAppendBufPlain(converted_msg, "/\"", -1, 0);