Skip to content

Do not interpret random URLs as files anymore

Linus Jahn requested to merge lnj/kaidan:no-random-urls-as-file into master

Random links like 'https://conversations.im/omemo/' were interpreted as file previously, although that makes no sense at all.

When receiving a message, we also check the message body for interesting URLs like images or geo location URIs. However, we do not want any link to be recognized as file, so we need to ignore some from the body here.

The new tactic is to accept all URLs set via the out of band URL (XEP-0066), but to only accept image, audio, video and document files from the message body. Other links (like html websites) are ignored.

Merge request reports