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

1
.gitignore vendored
View File

@ -41,3 +41,4 @@ plugins/yourls.lua
plugins/youtube_channel.lua plugins/youtube_channel.lua
plugins/pr0gramm.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 if disposition then
-- attachment; filename=CodeCogsEqn.png -- attachment; filename=CodeCogsEqn.png
file_name = disposition:match('filename=([^;]+)') or file_name file_name = disposition:match('filename=([^;]+)') or file_name
file_name = string.gsub(file_name, "\"", "")
end end
return file_name return file_name