diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-11-21 01:53:31 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-11-21 01:53:31 +0000 |
commit | 6967b422abe6a14a719e039aeedda4a922f06c5b (patch) | |
tree | 9754031ff8fef77e5d9383836543b88591370397 /railties/lib | |
parent | 7d459203eedc32f1a88e98acc4b2a4f32a7683f4 (diff) | |
download | rails-6967b422abe6a14a719e039aeedda4a922f06c5b.tar.gz rails-6967b422abe6a14a719e039aeedda4a922f06c5b.tar.bz2 rails-6967b422abe6a14a719e039aeedda4a922f06c5b.zip |
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
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/commands/plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |