From 1c34cc24f2f6a111fa86048f4d90e2a4c76652a9 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Sat, 14 Feb 2015 02:34:13 +0000 Subject: refs #7104 directly close session again to prevent any blocking when ajax requests are made within widget or when sparklines are requested --- core/FrontController.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'core/FrontController.php') diff --git a/core/FrontController.php b/core/FrontController.php index dd1d44a856..26ce67a6e4 100644 --- a/core/FrontController.php +++ b/core/FrontController.php @@ -466,6 +466,18 @@ class FrontController extends Singleton && ($module !== 'API' || ($action && $action !== 'index')) ) { Session::start(); + + if (!empty($_SERVER['HTTP_REFERER']) + && !empty($POST['token_auth']) + && strpos($_SERVER['HTTP_REFERER'], 'module=CoreHome&action=index') !== false + && Common::getRequestVar('widget', 0, 'int') === 1) { + Session::close(); + } + + if (!empty($_SERVER['HTTP_REFERER']) + && Common::getRequestVar('viewDataTable', '', 'string') === 'sparkline') { + Session::close(); + } } if (is_null($parameters)) { -- cgit v1.2.3