From 74b02e66bd2adfe7aae4a880e3a2ef9b10329baf Mon Sep 17 00:00:00 2001 From: lxsang Date: Thu, 11 Feb 2021 13:45:40 +0100 Subject: [PATCH] fix mime pattern bug --- os/libs/vfs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/libs/vfs.lua b/os/libs/vfs.lua index 0184367..c3462cf 100644 --- a/os/libs/vfs.lua +++ b/os/libs/vfs.lua @@ -113,7 +113,7 @@ vfs.write = function(path,data) local uid = ulib.uid(SESSION.user) -- if data ~= "" then - local header = string.match(data, "^data%:[%w%.-]+%/[%w%.-]+;base64,") + local header = string.match(data, "^data%:[%w%.-+]+%/[%w%.-+]+;base64,") if header ~= nil then local b64data = string.gsub(data, utils.escape_pattern(header),"") local barr = std.b64decode(b64data)