From: Hendrik Jäger Date: Thu, 21 Jul 2022 20:55:25 +0000 (+0200) Subject: fix: URI.escape is not needed anymore X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=26699e832bd4d4571e052ea7db560ab74a321cb8;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git fix: URI.escape is not needed anymore --- 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