download_strategy: In regexps, only allow valid hostname characters
> This regular expression has an unrestricted wildcard '.+?' which may cause 'googlecode\.com/svn' to be matched anywhere in the URL, outside the hostname.
This commit is contained in:
parent
f8d9a5c2db
commit
94d8bd5d32
@ -1404,18 +1404,18 @@ class DownloadStrategyDetector
|
|||||||
when %r{^https?://www\.apache\.org/dyn/closer\.cgi},
|
when %r{^https?://www\.apache\.org/dyn/closer\.cgi},
|
||||||
%r{^https?://www\.apache\.org/dyn/closer\.lua}
|
%r{^https?://www\.apache\.org/dyn/closer\.lua}
|
||||||
CurlApacheMirrorDownloadStrategy
|
CurlApacheMirrorDownloadStrategy
|
||||||
when %r{^https?://(.+?\.)?googlecode\.com/svn},
|
when %r{^https?://([A-Za-z0-9\-.]+\.)?googlecode\.com/svn},
|
||||||
%r{^https?://svn\.},
|
%r{^https?://svn\.},
|
||||||
%r{^svn://},
|
%r{^svn://},
|
||||||
%r{^svn\+http://},
|
%r{^svn\+http://},
|
||||||
%r{^http://svn\.apache\.org/repos/},
|
%r{^http://svn\.apache\.org/repos/},
|
||||||
%r{^https?://(.+?\.)?sourceforge\.net/svnroot/}
|
%r{^https?://([A-Za-z0-9\-.]+\.)?sourceforge\.net/svnroot/}
|
||||||
SubversionDownloadStrategy
|
SubversionDownloadStrategy
|
||||||
when %r{^cvs://}
|
when %r{^cvs://}
|
||||||
CVSDownloadStrategy
|
CVSDownloadStrategy
|
||||||
when %r{^hg://},
|
when %r{^hg://},
|
||||||
%r{^https?://(.+?\.)?googlecode\.com/hg},
|
%r{^https?://([A-Za-z0-9\-.]+\.)?googlecode\.com/hg},
|
||||||
%r{^https?://(.+?\.)?sourceforge\.net/hgweb/}
|
%r{^https?://([A-Za-z0-9\-.]+\.)?sourceforge\.net/hgweb/}
|
||||||
MercurialDownloadStrategy
|
MercurialDownloadStrategy
|
||||||
when %r{^bzr://}
|
when %r{^bzr://}
|
||||||
BazaarDownloadStrategy
|
BazaarDownloadStrategy
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user