1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Skip svnindex.xsl files when installing plugins (closes #7070) [davidjrice]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2007-09-22 23:20:48 +00:00
parent 5757fb61d8
commit 82a85e8592

View file

@ -884,6 +884,7 @@ class RecursiveHTTPFetcher
links = []
contents.scan(/href\s*=\s*\"*[^\">]*/i) do |link|
link = link.sub(/href="/i, "")
next if link =~ /svnindex.xsl$/
next if link =~ /^http/i || link =~ /^\./
links << File.join(base_url, link)
end