From 22bda9f65f876013bb6ed3e4168c35084b30641b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 24 Nov 2018 03:28:05 +0000 Subject: [PATCH] Optimize a bit oscommerce detection (#2550) - Split the regexp in 3 parts - Improve a regex, accordingly to the [source code](https://github.com/osCommerce/oscommerce/blob/1705380eadfd14572764ba7c783d75951ef9d299/osCommerce/OM/Core/Site/Shop/Languages/en_US.xml#L205) of oscommerce - Fix some mistakes --- src/apps.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/apps.json b/src/apps.json index 4394cdb77..e1a5244ec 100644 --- a/src/apps.json +++ b/src/apps.json @@ -12251,7 +12251,11 @@ "cookies": { "osCsid": "" }, - "html": "(?:]*(?:\\?|&)osCsid|Powered by (?:<[^>]+>)?osCommerce|<[^>]+class=\"[^>]*infoBoxHeading)", + "html": [ + "
Powered by ]+name=\"osCsid\"", + "<(?:tr|td|table)class=\"[^\"]*infoBoxHeading" + ], "icon": "osCommerce.png", "implies": [ "PHP",