Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-02-14 05:34:13 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-02-14 05:34:13 +0300
commit1c34cc24f2f6a111fa86048f4d90e2a4c76652a9 (patch)
treeef4f445e256d465cad66e4351ee1d74e6f7c520b /core/FrontController.php
parent0de03d426bfdc2be6de84228da5e3dd1ad0568e6 (diff)
refs #7104 directly close session again to prevent any blocking when ajax requests are made within widget or when sparklines are requested
Diffstat (limited to 'core/FrontController.php')
-rw-r--r--core/FrontController.php12
1 files changed, 12 insertions, 0 deletions
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)) {