From 26699e832bd4d4571e052ea7db560ab74a321cb8 Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Thu, 21 Jul 2022 22:55:25 +0200 Subject: fix: URI.escape is not needed anymore --- data/rbot/plugins/url.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index 3faeeab9..e974c96b 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -254,8 +254,7 @@ class UrlPlugin < Plugin def message(m) return if m.address? - escaped = URI.escape(m.message, OUR_UNSAFE) - urls = URI.extract(escaped, ['http', 'https']) + urls = URI.extract(m.message, ['http', 'https']) return if urls.empty? Thread.new { handle_urls(m, :urls => urls) } end -- cgit v1.2.3