Add root dirname as a escape value too
This commit is contained in:
parent
0254605cd5
commit
601af55b43
@ -306,7 +306,7 @@ class AbstractFileDownloadStrategy < AbstractDownloadStrategy
|
||||
url_pathname = Pathname.new(@url)
|
||||
until ext = url_pathname.extname[/[^?]+/]
|
||||
url_pathname = url_pathname.dirname
|
||||
return if url_pathname.to_s == "."
|
||||
return if url_pathname.to_s == "." || url_pathname.to_s == "/"
|
||||
end
|
||||
ext
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user