diff options
author | fiaxh <git@mx.ax.lt> | 2017-11-21 23:27:27 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-11-22 00:40:41 +0100 |
commit | de133218dab0ac1729dbfc32177979133c15f53b (patch) | |
tree | 1cecc41b9f54841dd44cc348a564d9fd7f999f9e /plugins/http-files | |
parent | f3063f56b7e2ccfef255256d5bf527988fcf2957 (diff) | |
download | dino-de133218dab0ac1729dbfc32177979133c15f53b.tar.gz dino-de133218dab0ac1729dbfc32177979133c15f53b.zip |
Disconnect stanza listeners from pipeline
Diffstat (limited to 'plugins/http-files')
-rw-r--r-- | plugins/http-files/src/file_provider.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/http-files/src/file_provider.vala b/plugins/http-files/src/file_provider.vala index 53fe3bb0..58ff6445 100644 --- a/plugins/http-files/src/file_provider.vala +++ b/plugins/http-files/src/file_provider.vala @@ -17,7 +17,7 @@ public class FileProvider : Dino.FileProvider, Object { public FileProvider(StreamInteractor stream_interactor, Dino.Database dino_db) { this.stream_interactor = stream_interactor; this.url_regex = new Regex("""^(?i)\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))$"""); - this.file_ext_regex = new Regex("""\.(png|jpg|jpeg|svg|gif)"""); + this.file_ext_regex = new Regex("""\.(png|jpg|jpeg|svg|gif|pgp)"""); stream_interactor.get_module(MessageProcessor.IDENTITY).message_received.connect(check_message); stream_interactor.get_module(MessageProcessor.IDENTITY).message_sent.connect(check_message); |