Fix basename_without_params.

This commit is contained in:
Markus Reiter 2018-07-08 20:13:41 +02:00
parent bf856117ba
commit 8ea7ad2218

View File

@ -76,6 +76,8 @@ class AbstractDownloadStrategy
end
def basename_without_params
return unless @url
# Strip any ?thing=wad out of .c?thing=wad style extensions
File.basename(@url)[/[^?]+/]
end