From 28277cb42e84583e07ff327ca1e250d61494a5d5 Mon Sep 17 00:00:00 2001 From: Robert Gerus Date: Thu, 13 Mar 2014 15:34:19 +0100 Subject: [PATCH] limit url size. --- plugins/scrape.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scrape.rb b/plugins/scrape.rb index fca01cb..fb6992e 100644 --- a/plugins/scrape.rb +++ b/plugins/scrape.rb @@ -42,7 +42,7 @@ Client.register_trigger("PRIVMSG") do |msg| url = Digest::MD5.hexdigest(word) end - title = Nokogiri::HTML(open(word).read).title().split(/\n/)[0] + title = Nokogiri::HTML(open(word).read(10240).title().split(/\n/)[0][ Scrape::Link.create( :url => url,