From 2ec6db32c0a8425bab464ccee9c6b3de15b363f0 Mon Sep 17 00:00:00 2001 From: "Nicholas K. Dionysopoulos" Date: Tue, 12 Mar 2019 12:04:17 +0200 Subject: [PATCH] # [LOW] The cookie consent code was outside the BODY tag --- CHANGELOG | 3 ++- .../datacompliancecookie/datacompliancecookie.php | 12 +++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 0761b78..052a194 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,9 +3,10 @@ Akeeba Data Compliance 1.1.0 + Protection of all component and plugin folders against direct web access + Export data: support for Joomla “privacy” group plugins ! Immediate failure accessing the backend of the component [gh-27] +# [HIGH] ATS export, causing fatal error # [LOW] Cookie compliance fails with a fatal error when the server does not set the HTTP_HOST environment variable # [LOW] PHP 7.3 warning in the Control Panel page -# [HIGH] ATS export, causing fatal error +# [LOW] The cookie consent code was outside the BODY tag Akeeba Data Compliance 1.0.1 ================================================================================ diff --git a/plugins/system/datacompliancecookie/datacompliancecookie.php b/plugins/system/datacompliancecookie/datacompliancecookie.php index 701e5a9..46e9d73 100644 --- a/plugins/system/datacompliancecookie/datacompliancecookie.php +++ b/plugins/system/datacompliancecookie/datacompliancecookie.php @@ -644,7 +644,17 @@ private function loadHtml($app) } // Append the parsed view template content to the application's HTML output - $app->setBody($app->getBody() . $content); + $body = $app->getBody(); + $postBody = ''; + $closeTagPos = strpos($body, 'setBody($body . $content . $postBody); } /**