[BUGFIX] Add P3P header for IE 11 of Windows 7 when page opens in popup 12/54412/2
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 17 Oct 2017 04:05:12 +0000 (00:05 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 17 Oct 2017 04:07:37 +0000 (06:07 +0200)
Resolves: #81736
Change-Id: I6b0ffc3e47b0691c58233e9a41003d20e0195dc1
Reviewed-on: https://review.typo3.org/54412
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Resources/Private/Eid/EidDispatcher.php

index 25fe702..c2b2158 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2017-10-16  Stanislas Rolland  <typo(arobas)sjbr.ca>
        * Resolves #82716: Migrate from mcrypt to openssl
+       * Resolves #81736: Add P3P header for IE 11 of Windows 7 when page opens in popup
 
 2017-05-28  Stanislas Rolland  <typo(arobas)sjbr.ca>
        * Resolves #81354: Error code not localized
index b63e382..8d7b0e0 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright notice
  *
  * 2010 Daniel Lienert <daniel@lienert.cc>, Michael Knoll <mimi@kaktusteam.de>
- * 2012 Stanislas Rolland <typo3(arobas)sjbr.ca>
+ * 2012-2017 Stanislas Rolland <typo3(arobas)sjbr.ca>
  * All rights reserved
  *
  *
  ***************************************************************/
 /**
  * This script loads the required environment to dispatch an extbase call
- *
- * Include this script in ext_localconf:
- * $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['sr_freecap_EidDispatcher'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sr_freecap') . 'Resources/Private/Eid/EidDispatcher.php'
- *
- * @author Daniel Lienert <daniel@lienert.cc>
- * @author Stanislas Rolland <typo3(arobas)sjbr.ca>
  */
 // Exit, if script is called directly
 if (!defined('TYPO3_MODE') || TYPO3_MODE !== 'FE') {
        die('Could not access this script directly!');
 }
+// Setting privacy policy header for IE in popup window
+header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
 // Hand over to the Eid Utility Object
-/** @var $dispatcher SJBR\SrFreecap\Utility\EidUtility */
-$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('SJBR\\SrFreecap\\Utility\\EidUtility');
+$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\SJBR\SrFreecap\Utility\EidUtility::class);
 echo $dispatcher->initAndDispatch();
-?>