]> Pileus Git - ~andy/lamechat/commitdiff
Fix xmpp escape display.
authorAndy Spencer <andy.spencer@spacex.com>
Wed, 27 Feb 2019 09:05:27 +0000 (01:05 -0800)
committerAndy Spencer <andy753421@gmail.com>
Thu, 4 Apr 2019 19:52:02 +0000 (19:52 +0000)
xmpp.c

diff --git a/xmpp.c b/xmpp.c
index bcdce1277164546ab6fa4b555873a69f99880ad7..374e6615d4c286c4525fdf49503b8ee24a4156a7 100644 (file)
--- a/xmpp.c
+++ b/xmpp.c
@@ -1135,6 +1135,7 @@ void xmpp_send(channel_t *channel, const char *text)
        const char *arg;
 
        /* Escape HTML */
+       const char *raw = text;
        escape(buf, text, sizeof(buf));
        text = buf;
 
@@ -1235,7 +1236,7 @@ void xmpp_send(channel_t *channel, const char *text)
                                "<body>%s</body>"
                                "</message>",
                                srv->id++, srv->bind, chan->dest, text);
-                       chat_recv(channel, &srv->myself.user, text);
+                       chat_recv(channel, &srv->myself.user, raw);
                }
        }
 }