mirror of
				https://github.com/lxsang/antd-web-apps
				synced 2025-10-31 10:25:38 +01:00 
			
		
		
		
	fix mime pattern bug
This commit is contained in:
		| @@ -113,7 +113,7 @@ vfs.write = function(path,data) | |||||||
| 		local uid = ulib.uid(SESSION.user) | 		local uid = ulib.uid(SESSION.user) | ||||||
| 		-- | 		-- | ||||||
| 		if data ~= "" then | 		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 | 			if header ~= nil then | ||||||
| 				local b64data = string.gsub(data, utils.escape_pattern(header),"") | 				local b64data = string.gsub(data, utils.escape_pattern(header),"") | ||||||
| 				local barr = std.b64decode(b64data) | 				local barr = std.b64decode(b64data) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user