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:
authorrobocoder <anthon.pang@gmail.com>2010-06-06 23:27:36 +0400
committerrobocoder <anthon.pang@gmail.com>2010-06-06 23:27:36 +0400
commit40d3657df4c1d9d2f0694af2613dea7b431650ad (patch)
tree6947694a97aa7dc19b59e25febc0fb6671443904 /core/Session.php
parent9a573d13aac8499cd223746de46367f6a3a336c6 (diff)
refs #1279 - test that session.save_path is also readable, otherwise
session file cleanup may fail, e.g., Zend_Session_Exception: Zend_Session::start() - /PATH/libs/Zend/Session.php(Line:480): Error #8 session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied git-svn-id: http://dev.piwik.org/svn/trunk@2280 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Session.php')
-rw-r--r--core/Session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Session.php b/core/Session.php
index 45e1e01209..49969f2066 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -39,7 +39,7 @@ class Piwik_Session extends Zend_Session
{
$sessionPath = $matches[1];
}
- if(ini_get('safe_mode') || ini_get('open_basedir') || empty($sessionPath) || !@is_writable($sessionPath))
+ if(ini_get('safe_mode') || ini_get('open_basedir') || empty($sessionPath) || !@is_readable($sessionPath) || !@is_writable($sessionPath))
{
$sessionPath = PIWIK_USER_PATH . '/tmp/sessions';
$ok = true;