fixed savepath for files

This commit is contained in:
Akamaru 2015-07-21 22:08:58 +02:00
parent 9631d569fa
commit 77b85701b4
2 changed files with 3 additions and 1 deletions

3
.gitignore vendored
View File

@ -40,4 +40,5 @@ plugins/gfycat.lua
plugins/yourls.lua
plugins/youtube_channel.lua
plugins/pr0gramm.lua
plugins/licht.lua
plugins/licht.lua
plugins/dantest.lua

View File

@ -78,6 +78,7 @@ function get_http_file_name(url, headers)
if disposition then
-- attachment; filename=CodeCogsEqn.png
file_name = disposition:match('filename=([^;]+)') or file_name
file_name = string.gsub(file_name, "\"", "")
end
return file_name