summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChris Gahan <chris@ill-logic.com>2006-02-09 18:54:04 +0000
committerChris Gahan <chris@ill-logic.com>2006-02-09 18:54:04 +0000
commitdf0347a97390299b1d4ef878d3f592e01c477afc (patch)
tree3de1499be1737836d55deebda1fd206208939dc8 /data
parent5720064dde5ff1205bf072ffe01e7ab070b2152a (diff)
Little tweak to fix an edge-case.
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/url.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb
index 858b5a05..ca24f072 100644
--- a/data/rbot/plugins/url.rb
+++ b/data/rbot/plugins/url.rb
@@ -360,8 +360,8 @@ class UrlPlugin < Plugin
case response
when Net::HTTPRedirection then
# call self recursively if this is a redirect
- redirect_to = response['location']
- puts "+ redirect location: #{redirect_to}"
+ redirect_to = response['location'] || './'
+ puts "+ redirect location: #{redirect_to.inspect}"
url = URI.join url.to_s, redirect_to
puts "+ whee, redirecting to #{url.to_s}!"
title = get_title_for_url(url.to_s, depth-1)