Deal with text/x-markdown in the text client by displaying it as plain text.
authorArt Cancro <ajc@citadel.org>
Fri, 6 Apr 2018 21:23:41 +0000 (17:23 -0400)
committerArt Cancro <ajc@citadel.org>
Fri, 6 Apr 2018 21:23:41 +0000 (17:23 -0400)
textclient/citadel.c

index d01f6fef57f873d441fde1e7d486dff4b2b51d68..b8c534337f5630ff151472fa9bd6693ba0d10a7c 100644 (file)
@@ -1073,7 +1073,7 @@ void get_serv_info(CtdlIPC *ipc, char *supplied_hostname)
         * isn't really all that great, it's probably better to just go with
         * the plain text when we have it available.
         */
-       if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "text/plain|text/html") / 100 ) != 2) {
+       if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "text/plain|text/html|text/x-markdown") / 100 ) != 2) {
                scr_printf("ERROR: Extremely old server; MSG4 framework not supported.\n");
                logoff(ipc, 0);
        }