From 44bdc7a219ae08b1537d9c62e8e5918e0180bed3 Mon Sep 17 00:00:00 2001 From: Pier Paolo Ramon Date: Tue, 20 Mar 2012 14:48:15 +0100 Subject: [PATCH 1/3] White-space --- share/js/apps.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/js/apps.js b/share/js/apps.js index 583317260..0746eac8b 100644 --- a/share/js/apps.js +++ b/share/js/apps.js @@ -50,7 +50,7 @@ 'Arc Forum': { cats: { 1: 2 }, html: /ping\.src = node\.href;/ }, 'Atlassian Confluence': { cats: { 1: 8 }, html: /Powered by ]+banshee-php\.org/i }, 'Backbone.js': { cats: { 1: 12 }, script: /backbone.*\.js/, env: /^Backbone$/ }, @@ -168,7 +168,7 @@ 'Koobi': { cats: { 1: 1 }, meta: { 'generator': /Koobi/i } }, 'lighttpd': { cats: { 1: 22 }, headers: { 'Server': /lighttpd/i } }, 'LiveJournal': { cats: { 1: 11 }, url: /^(www.)?.+\.livejournal\.com/i }, - 'Liferay': { cats: { 1: 1 }, env: /^Liferay$/ }, + 'Liferay': { cats: { 1: 1 }, env: /^Liferay$/ }, 'Lotus Domino': { cats: { 1: 22 }, headers: { 'Server': /Lotus\-Domino/i } }, 'Magento': { cats: { 1: 6 }, script: /\/(js\/mage|skin\/frontend\/(default|enterprise))\//, env: /^(Mage|VarienForm)$/ }, 'Mambo': { cats: { 1: 1 }, meta: { 'generator': /Mambo/i } }, @@ -205,7 +205,7 @@ 'OpenCart': { cats: { 1: 6 }, html: /(Powered By ]+OpenCart|route = getURLVar\(("|')route)/i }, 'openEngine': { cats: { 1: 1 }, html: /]+openEngine/i }, 'OpenGSE': { cats: { 1: 22 }, headers: { 'Server': /GSE/i } }, - 'OpenLayers': { cats: { 1: 5 }, script: /openlayers/, env:/^OpenLayers$/ }, + 'OpenLayers': { cats: { 1: 5 }, script: /openlayers/, env:/^OpenLayers$/ }, 'Optimizely': { cats: { 1: 10 }, env: /^optimizely/ }, 'osCommerce': { cats: { 1: 6 }, html: /]*osCsid/i }, 'osCSS': { cats: { 1: 6 }, html: / Date: Tue, 20 Mar 2012 14:51:28 +0100 Subject: [PATCH 2/3] Little enhancements for Liferay Portal (using ALSO headers) --- share/js/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/js/apps.js b/share/js/apps.js index 0746eac8b..bd2b2f051 100644 --- a/share/js/apps.js +++ b/share/js/apps.js @@ -168,7 +168,7 @@ 'Koobi': { cats: { 1: 1 }, meta: { 'generator': /Koobi/i } }, 'lighttpd': { cats: { 1: 22 }, headers: { 'Server': /lighttpd/i } }, 'LiveJournal': { cats: { 1: 11 }, url: /^(www.)?.+\.livejournal\.com/i }, - 'Liferay': { cats: { 1: 1 }, env: /^Liferay$/ }, + 'Liferay': { cats: { 1: 1 }, env: /^Liferay$/, headers: { 'Liferay-Portal': /Liferay/i } }, 'Lotus Domino': { cats: { 1: 22 }, headers: { 'Server': /Lotus\-Domino/i } }, 'Magento': { cats: { 1: 6 }, script: /\/(js\/mage|skin\/frontend\/(default|enterprise))\//, env: /^(Mage|VarienForm)$/ }, 'Mambo': { cats: { 1: 1 }, meta: { 'generator': /Mambo/i } }, From 8758312ccf4fb6474814b5ba2be65fc5398bb941 Mon Sep 17 00:00:00 2001 From: Pier Paolo Ramon Date: Tue, 20 Mar 2012 14:53:50 +0100 Subject: [PATCH 3/3] More loose matching for Liferay Portal headers --- share/js/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/js/apps.js b/share/js/apps.js index bd2b2f051..5da460fef 100644 --- a/share/js/apps.js +++ b/share/js/apps.js @@ -168,7 +168,7 @@ 'Koobi': { cats: { 1: 1 }, meta: { 'generator': /Koobi/i } }, 'lighttpd': { cats: { 1: 22 }, headers: { 'Server': /lighttpd/i } }, 'LiveJournal': { cats: { 1: 11 }, url: /^(www.)?.+\.livejournal\.com/i }, - 'Liferay': { cats: { 1: 1 }, env: /^Liferay$/, headers: { 'Liferay-Portal': /Liferay/i } }, + 'Liferay': { cats: { 1: 1 }, env: /^Liferay$/, headers: { 'Liferay-Portal': /.*/i } }, 'Lotus Domino': { cats: { 1: 22 }, headers: { 'Server': /Lotus\-Domino/i } }, 'Magento': { cats: { 1: 6 }, script: /\/(js\/mage|skin\/frontend\/(default|enterprise))\//, env: /^(Mage|VarienForm)$/ }, 'Mambo': { cats: { 1: 1 }, meta: { 'generator': /Mambo/i } },