* output_html(): it needs to be isspace()src="cid: not <blank>src="cid:
authorWilfried Göesgens <willi@citadel.org>
Mon, 26 Apr 2010 22:22:37 +0000 (22:22 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 26 Apr 2010 22:22:37 +0000 (22:22 +0000)
webcit/html2html.c

index 1daf7b4103218872572b09c5e9186b3d27f10485..91bac48eaa4b3ae96e991780eac3394a8a1ea72c 100644 (file)
@@ -409,10 +409,11 @@ void output_html(const char *supplied_charset, int treat_as_wiki, int msgnum, St
                                lprintf(9, "Theoretical bytes remaining: %d\n", msgend - ptr);
                        }
 
-                       src=strstr(ptr, " src=\"cid:");
+                       src=strstr(ptr, "src=\"cid:");
                        ++brak;
 
                        if (src
+                           && isspace(*(src-1))
                                && tag_end
                                && (cid_start=strchr(src,':'))
                                && (cid_end=strchr(cid_start,'"'))