From d8231a3338c9a5adeb1433f478861f2c630cf4e8 Mon Sep 17 00:00:00 2001 From: Dmitry Kim Date: Sun, 5 Aug 2007 22:17:36 +0000 Subject: * (plugins/url.rb) apply URI.escape to make non-rfc charsets in uri useable --- data/rbot/plugins/url.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot/plugins/url.rb') diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index 269227a3..92853481 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -130,7 +130,7 @@ class UrlPlugin < Plugin # TODO support multiple urls in one line if m.message =~ /(f|ht)tps?:\/\// if m.message =~ /((f|ht)tps?:\/\/.*?)(?:\s+|$)/ - urlstr = $1 + urlstr = URI.escape $1 list = @registry[m.target] title = nil -- cgit v1.2.3