From 251f4cfa06cbca0a6a4329d7939f0e76d3e614d1 Mon Sep 17 00:00:00 2001 From: Johan Janssens Date: Tue, 26 May 2015 01:26:36 +0200 Subject: [PATCH] #502- Remove p3p system plugin --- administrator/components/com_admin/script.php | 1 - .../language/en-GB/en-GB.plg_system_p3p.ini | 9 ---- .../en-GB/en-GB.plg_system_p3p.sys.ini | 7 --- administrator/language/en-GB/install.xml | 2 - installation/sql/mysql/joomla.sql | 1 - plugins/system/p3p/index.html | 1 - plugins/system/p3p/p3p.php | 43 ------------------- plugins/system/p3p/p3p.xml | 32 -------------- tests/unit/stubs/database/jos_extensions.csv | 1 - 9 files changed, 97 deletions(-) delete mode 100644 administrator/language/en-GB/en-GB.plg_system_p3p.ini delete mode 100644 administrator/language/en-GB/en-GB.plg_system_p3p.sys.ini delete mode 100644 plugins/system/p3p/index.html delete mode 100644 plugins/system/p3p/p3p.php delete mode 100644 plugins/system/p3p/p3p.xml diff --git a/administrator/components/com_admin/script.php b/administrator/components/com_admin/script.php index 16bc84660b..82cb579e44 100644 --- a/administrator/components/com_admin/script.php +++ b/administrator/components/com_admin/script.php @@ -163,7 +163,6 @@ protected function updateManifestCaches() $extensions[] = array('plugin', 'content', 'search', 0); $extensions[] = array('plugin', 'tags', 'search', 0); $extensions[] = array('plugin', 'languagefilter', 'system', 0); - $extensions[] = array('plugin', 'p3p', 'system', 0); $extensions[] = array('plugin', 'cache', 'system', 0); $extensions[] = array('plugin', 'debug', 'system', 0); $extensions[] = array('plugin', 'log', 'system', 0); diff --git a/administrator/language/en-GB/en-GB.plg_system_p3p.ini b/administrator/language/en-GB/en-GB.plg_system_p3p.ini deleted file mode 100644 index 363573dc49..0000000000 --- a/administrator/language/en-GB/en-GB.plg_system_p3p.ini +++ /dev/null @@ -1,9 +0,0 @@ -; Joomla! Project -; Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php -; Note : All ini files need to be saved as UTF-8 - -PLG_P3P_XML_DESCRIPTION="The system P3P policy plugin allows Joomla! to send a customised string of P3P policy tags in the HTTP header. This is required for the sessions to work on certain browsers, i.e. Internet Explorer 6 and 7." -PLG_SYSTEM_P3P="System - P3P Policy" -PLG_P3P_HEADER_DESCRIPTION="Enter your P3P policy tags. For more information consult The Platform for Privacy Preferences specification, http://www.w3.org/TR/P3P/" -PLG_P3P_HEADER_LABEL="P3P Tags" \ No newline at end of file diff --git a/administrator/language/en-GB/en-GB.plg_system_p3p.sys.ini b/administrator/language/en-GB/en-GB.plg_system_p3p.sys.ini deleted file mode 100644 index 43d178364d..0000000000 --- a/administrator/language/en-GB/en-GB.plg_system_p3p.sys.ini +++ /dev/null @@ -1,7 +0,0 @@ -; Joomla! Project -; Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. -; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php -; Note : All ini files need to be saved as UTF-8 - -PLG_P3P_XML_DESCRIPTION="The system P3P policy plugin allows Joomla! to send a customised string of P3P policy tags in the HTTP header. This is required for the sessions to work on certain browsers, i.e. Internet Explorer 6 and 7." -PLG_SYSTEM_P3P="System - P3P Policy" diff --git a/administrator/language/en-GB/install.xml b/administrator/language/en-GB/install.xml index 92d2d230b1..14b7e8f3a4 100644 --- a/administrator/language/en-GB/install.xml +++ b/administrator/language/en-GB/install.xml @@ -148,8 +148,6 @@ en-GB.plg_system_log.sys.ini en-GB.plg_system_logout.ini en-GB.plg_system_logout.sys.ini - en-GB.plg_system_p3p.ini - en-GB.plg_system_p3p.sys.ini en-GB.plg_system_remember.ini en-GB.plg_system_remember.sys.ini en-GB.plg_system_sef.ini diff --git a/installation/sql/mysql/joomla.sql b/installation/sql/mysql/joomla.sql index bbcb64d27a..d28fa5af94 100644 --- a/installation/sql/mysql/joomla.sql +++ b/installation/sql/mysql/joomla.sql @@ -372,7 +372,6 @@ INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder` (417, 'plg_search_categories', 'plugin', 'categories', 'search', 0, 1, 1, 0, '', '{"search_limit":"50","search_content":"1","search_archived":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0), (419, 'plg_search_content', 'plugin', 'content', 'search', 0, 1, 1, 0, '', '{"search_limit":"50","search_content":"1","search_archived":"1"}', '', '', 0, '0000-00-00 00:00:00', 0, 0), (422, 'plg_system_languagefilter', 'plugin', 'languagefilter', 'system', 0, 0, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 1, 0), -(423, 'plg_system_p3p', 'plugin', 'p3p', 'system', 0, 1, 1, 0, '', '{"headers":"NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"}', '', '', 0, '0000-00-00 00:00:00', 2, 0), (424, 'plg_system_cache', 'plugin', 'cache', 'system', 0, 0, 1, 1, '', '{"browsercache":"0","cachetime":"15"}', '', '', 0, '0000-00-00 00:00:00', 9, 0), (425, 'plg_system_debug', 'plugin', 'debug', 'system', 0, 1, 1, 0, '', '{"profile":"1","queries":"1","memory":"1","language_files":"1","language_strings":"1","strip-first":"1","strip-prefix":"","strip-suffix":""}', '', '', 0, '0000-00-00 00:00:00', 4, 0), (426, 'plg_system_log', 'plugin', 'log', 'system', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 5, 0), diff --git a/plugins/system/p3p/index.html b/plugins/system/p3p/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/plugins/system/p3p/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/plugins/system/p3p/p3p.php b/plugins/system/p3p/p3p.php deleted file mode 100644 index 8d058e52d6..0000000000 --- a/plugins/system/p3p/p3p.php +++ /dev/null @@ -1,43 +0,0 @@ -params->get('header', 'NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'); - $header = trim($header); - - // Bail out on empty header (why would anyone do that?!). - if ( empty($header) ) - { - return; - } - - // Replace any existing P3P headers in the response. - JFactory::getApplication()->setHeader('P3P', 'CP="' . $header . '"', true); - } -} diff --git a/plugins/system/p3p/p3p.xml b/plugins/system/p3p/p3p.xml deleted file mode 100644 index 18ce803b67..0000000000 --- a/plugins/system/p3p/p3p.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - plg_system_p3p - Joomla! Project - September 2010 - Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. - GNU General Public License version 2 or later; see LICENSE.txt - admin@joomla.org - www.joomla.org - 3.0.0 - PLG_P3P_XML_DESCRIPTION - - p3p.php - index.html - - - en-GB.plg_system_p3p.ini - en-GB.plg_system_p3p.sys.ini - - - -
- -
-
-
-
diff --git a/tests/unit/stubs/database/jos_extensions.csv b/tests/unit/stubs/database/jos_extensions.csv index 2b47ff4245..6bb447bf4b 100644 --- a/tests/unit/stubs/database/jos_extensions.csv +++ b/tests/unit/stubs/database/jos_extensions.csv @@ -73,7 +73,6 @@ '417','plg_search_categories','plugin','categories','search','0','1','1','0','{"name":"plg_search_categories","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SEARCH_CATEGORIES_XML_DESCRIPTION","group":""}','{"search_limit":"50","search_content":"1","search_archived":"1"}',,,'0','0000-00-00 00:00:00','0','0' '419','plg_search_content','plugin','content','search','0','1','1','0','{"name":"plg_search_content","type":"plugin","creationDate":"November 2005","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SEARCH_CONTENT_XML_DESCRIPTION","group":""}','{"search_limit":"50","search_content":"1","search_archived":"1"}',,,'0','0000-00-00 00:00:00','0','0' '422','plg_system_languagefilter','plugin','languagefilter','system','0','0','1','1','{"name":"plg_system_languagefilter","type":"plugin","creationDate":"July 2010","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_SYSTEM_LANGUAGEFILTER_XML_DESCRIPTION","group":""}','{}',,,'0','0000-00-00 00:00:00','1','0' -'423','plg_system_p3p','plugin','p3p','system','0','1','1','0','{"name":"plg_system_p3p","type":"plugin","creationDate":"September 2010","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_P3P_XML_DESCRIPTION","group":""}','{"headers":"NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"}',,,'0','0000-00-00 00:00:00','2','0' '424','plg_system_cache','plugin','cache','system','0','0','1','1','{"name":"plg_system_cache","type":"plugin","creationDate":"February 2007","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_CACHE_XML_DESCRIPTION","group":""}','{"browsercache":"0","cachetime":"15"}',,,'0','0000-00-00 00:00:00','9','0' '425','plg_system_debug','plugin','debug','system','0','1','1','0','{"name":"plg_system_debug","type":"plugin","creationDate":"December 2006","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_DEBUG_XML_DESCRIPTION","group":""}','{"profile":"1","queries":"1","memory":"1","language_files":"1","language_strings":"1","strip-first":"1","strip-prefix":"","strip-suffix":""}',,,'0','0000-00-00 00:00:00','4','0' '426','plg_system_log','plugin','log','system','0','1','1','1','{"name":"plg_system_log","type":"plugin","creationDate":"April 2007","author":"Joomla! Project","copyright":"Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.","authorEmail":"admin@joomla.org","authorUrl":"www.joomla.org","version":"3.0.0","description":"PLG_LOG_XML_DESCRIPTION","group":""}','{}',,,'0','0000-00-00 00:00:00','5','0'