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