diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-08 09:37:01 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-04-08 09:37:01 +0000 |
commit | 109fa2a5b63af113df2c6b21d44135efa0d94d70 (patch) | |
tree | b19924dbcd8aab2bcd144800787172c863ebb6be /data/rbot/plugins/bash.rb | |
parent | 74c6e24a38169dd3a03f8d9381d6ff0e6475ffe7 (diff) |
plugins: use CGI.escape instead of URI.escape where appropriate, remove some checks for InvalidURIs that don't make sense anymore, irficy some more html
Diffstat (limited to 'data/rbot/plugins/bash.rb')
-rw-r--r-- | data/rbot/plugins/bash.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/data/rbot/plugins/bash.rb b/data/rbot/plugins/bash.rb index 520346be..93d9c3f2 100644 --- a/data/rbot/plugins/bash.rb +++ b/data/rbot/plugins/bash.rb @@ -17,7 +17,6 @@ # TODO allow selection of only quotes with vote > 0 require 'rexml/document' -require 'uri/common' class ::BashQuote attr_accessor :num, :text, :vote @@ -56,7 +55,7 @@ class BashPlugin < Plugin end def search(m, params) - esc = URI.escape(params[:words].to_s) + esc = CGI.escape(params[:words].to_s) html = @bot.httputil.get("http://bash.org/?search=#{esc}") html_bash(m, :html => html) end |