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:
parent
7d459203ee
commit
6967b422ab
@ -887,7 +887,7 @@ def links(base_url, contents)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user