conversations-classic/src
Daniel Gultsch 7177c523a1 Do not insert text shared over XMPP uri when already drafting message
XMPP uris in the style of `xmpp:test@domain.tld?body=Something` can be used to
directly share a message with a specific contact. Previously the text was
always appended to the message currently in draft. The message was never send
automatically. Essentially those links where treated like normal text share
intents (for example when sharing a URL from the browser) but without the
contact selection.

There is a concern (CVE-2018-18467) that when this URI is invoked automatically
and the user is currently drafting a long message to that particular contact
the text could be inserted in the draft field (input box) without the user
noticing.

To circumvent that the text shared over XMPP uris that contain a particular
contact is now appended only if the draft box is currently empty.

Sharing text normally (**with** manual contact selection) is still treated the
same; meaning the shared text will be appended to the current draft. This is
intended behaviour to make the
'Hey I have this cool link here;' *open browser*, *share link* - secenario
work.
2018-10-19 15:39:31 +02:00
..
compat/java/eu/siacs/conversations use EmojiWrapperEditText for most relevant text inputs 2018-06-29 13:40:55 +02:00
free/java/eu/siacs/conversations/services introduced build flavor to build w/o emoji compat 2018-06-21 14:26:25 +02:00
freeCompat/java/eu/siacs/conversations/ui/service EmojiService: use replaceAll=false on android 8 2018-07-05 13:22:32 +02:00
main Do not insert text shared over XMPP uri when already drafting message 2018-10-19 15:39:31 +02:00
playstore introduced build flavor to build w/o emoji compat 2018-06-21 14:26:25 +02:00
playstoreCompat EmojiService: use replaceAll=false on android 8 2018-07-05 13:22:32 +02:00
system/java/eu/siacs/conversations use EmojiWrapperEditText for most relevant text inputs 2018-06-29 13:40:55 +02:00