Allow sending "cleartext" img tags in Adium
Adium does not use <img> tags for outgoing inline pictures in messages, but initalizes a file transfer on its own. Additionally, they also don't escape outgoing user-entered HTML, which means we must not search for outgoing HTML <img> tags when using Adium, otherwise we would skip actual message content.
This commit is contained in:
parent
ad921e866a
commit
edd86b60e2
1 changed files with 2 additions and 1 deletions
|
@ -285,6 +285,8 @@ void send_inline_picture_done (struct tgl_state *TLS, void *extra, int success,
|
|||
}
|
||||
|
||||
int tgp_msg_send (struct tgl_state *TLS, const char *message, tgl_peer_id_t to) {
|
||||
|
||||
#ifndef __ADIUM_
|
||||
// search for outgoing embedded image tags and send them
|
||||
gchar *img = NULL;
|
||||
gchar *stripped = NULL;
|
||||
|
@ -329,7 +331,6 @@ int tgp_msg_send (struct tgl_state *TLS, const char *message, tgl_peer_id_t to)
|
|||
return -1;
|
||||
}
|
||||
|
||||
#ifndef __ADIUM_
|
||||
/*
|
||||
Adium won't escape any HTML markup and just pass any user-input through,
|
||||
while Pidgin will replace special chars with the escape chars and also add
|
||||
|
|
Loading…
Add table
Reference in a new issue