From b18f37c3d5e0cd4f12f6851839a4b5d417543833 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Mon, 2 Dec 2024 23:56:33 +0100 Subject: [PATCH] Fix browsers detected as 360 Secure Browser Signed-off-by: Liviu-Mihail Concioiu --- DeviceDetector.NET/Parser/Client/BrowserParser.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/DeviceDetector.NET/Parser/Client/BrowserParser.cs b/DeviceDetector.NET/Parser/Client/BrowserParser.cs index 6c2b386..3b9e965 100644 --- a/DeviceDetector.NET/Parser/Client/BrowserParser.cs +++ b/DeviceDetector.NET/Parser/Client/BrowserParser.cs @@ -952,20 +952,11 @@ public override ParseResult Parse() client.EngineVersion = browserFromUserAgent.EngineVersion ?? string.Empty; } - // https://bbs.360.cn/thread-16096544-1-1.html - if (GetRegexEngine().Match(client.Version, "/^15/") && GetRegexEngine().Match(browserFromUserAgent.Version, "/^114/")) - { - client.Version = string.Empty; - } - // If client hints report the following browsers, we use the version from useragent if (!string.IsNullOrEmpty(browserFromUserAgent.Version) && !new[] { "A0", "AL", "HP", "JR", "MU", "OM", "OP", "VR" }.Contains(client.ShortName)) { - client.Name = "360 Secure Browser"; - client.ShortName = "3B"; - client.Engine = browserFromUserAgent.Engine ?? string.Empty; - client.EngineVersion = browserFromUserAgent.EngineVersion ?? string.Empty; + client.Version = browserFromUserAgent.Version; } if ("Vewd Browser" == client.Name)