Permalink
Browse files

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
  • Loading branch information...
1 parent 7d45920 commit 6967b422abe6a14a719e039aeedda4a922f06c5b @NZKoz NZKoz committed Nov 21, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/commands/plugin.rb
@@ -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

0 comments on commit 6967b42

Please sign in to comment.