Fix audit

This commit is contained in:
Kevin Abel 2018-01-09 20:11:52 -06:00
parent 06f2b50ee4
commit dca8dc5bf5
No known key found for this signature in database
GPG Key ID: E0F7636DDDB96BF6

View File

@ -304,7 +304,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
# https://example.com/download.php?file=foo-1.0.tar.gz
# the extension we want is ".tar.gz", not ".php".
url_pathname = Pathname.new(@url)
while !ext = url_pathname.extname[/[^?]+/]
until ext = url_pathname.extname[/[^?]+/]
url_pathname = url_pathname.dirname
end
ext