mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-15 12:09:26 +08:00
修复反向代理代过来的数据
This commit is contained in:
@@ -121,6 +121,10 @@ end
|
||||
|
||||
function _M.split(self, str, reps)
|
||||
local arr = {}
|
||||
-- 修复反向代理代过来的数据
|
||||
if "table" == type(data) then
|
||||
return str
|
||||
end
|
||||
string.gsub(str,'[^'..reps..']+',function(w) table.insert(arr,w) end)
|
||||
return arr
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user