]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
fix: URI.escape is not needed anymore
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Thu, 21 Jul 2022 20:55:25 +0000 (22:55 +0200)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Sun, 24 Sep 2023 20:02:41 +0000 (22:02 +0200)
data/rbot/plugins/url.rb

index 3faeeab91e33ea056d97d77cf2f10a56c56c7cc3..e974c96b99042608da98829f82546ee4301781d5 100644 (file)
@@ -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