fixed savepath for files
This commit is contained in:
parent
9631d569fa
commit
77b85701b4
1
.gitignore
vendored
1
.gitignore
vendored
@ -41,3 +41,4 @@ plugins/yourls.lua
|
||||
plugins/youtube_channel.lua
|
||||
plugins/pr0gramm.lua
|
||||
plugins/licht.lua
|
||||
plugins/dantest.lua
|
@ -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
|
||||
|
Reference in New Issue
Block a user