From 6967b422abe6a14a719e039aeedda4a922f06c5b Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Wed, 21 Nov 2007 01:53:31 +0000 Subject: Make sure script/plugin doesn't skip files beginning with http (i.e. the old http_authentication plugin). Closes #7887 [choonkeat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8175 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/commands/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/commands/plugin.rb b/railties/lib/commands/plugin.rb index 014b268635..ecef450ff4 100644 --- a/railties/lib/commands/plugin.rb +++ b/railties/lib/commands/plugin.rb @@ -887,7 +887,7 @@ class RecursiveHTTPFetcher contents.scan(/href\s*=\s*\"*[^\">]*/i) do |link| link = link.sub(/href="/i, "") next if link =~ /svnindex.xsl$/ - next if link =~ /^http/i || link =~ /^\./ + next if link =~ /^(\w*:|)\/\// || link =~ /^\./ links << File.join(base_url, link) end links -- cgit v1.2.3