Update webstats_common.lua

This commit is contained in:
dami
2025-08-23 00:40:08 +08:00
parent 400846cab4
commit 8b25aecb3a
+2 -1
View File
@@ -1128,10 +1128,11 @@ function _M.match_client_arr(self, ua)
local pc_res = ngx.re.match(ua, pc_regx1, "ijo")
local cls_pc = nil
-- self:D("UA-JSON:"..self:to_json(ua))
if "table" == type(ua) then
ua = tostring(ua[1])
end
-- self:D("UA-JSON:"..self:to_json(ua))
if not pc_res then
if ngx.re.find(ua, "[Ff]irefox") then
cls_pc = "firefox"