if (!strncasecmp(ptr, "<a href=\"mailto:", 16)) {
content_length += 64;
StrBufAppendPrintf(converted_msg,
- "<a href=\"display_enter?force_room=_MAIL_&recp=");
+ "<a href=\"display_enter?force_room=_MAIL_?recp=");
ptr = &ptr[16];
++alevel;
++brak;
}
/** Fixup <img src="cid:... ...> to fetch the mime part */
else if (!strncasecmp(ptr, "<img ", 5)) {
+ char *cid_start, *cid_end;
char* tag_end=strchr(ptr,'>');
-
+ char* src;
/* FIXME - handle this situation (maybe someone opened an <img cid...
* and then ended the message)
*/
lprintf(9, "Theoretical bytes remaining: %d\n", msgend - ptr);
}
- char* src=strstr(ptr, " src=\"cid:");
- char *cid_start, *cid_end;
+ src=strstr(ptr, "src=\"cid:");
++brak;
if (src
+ && isspace(*(src-1))
&& tag_end
&& (cid_start=strchr(src,':'))
&& (cid_end=strchr(cid_start,'"'))