mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user