diff options
author | robocoder <anthon.pang@gmail.com> | 2009-12-13 09:24:21 +0300 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2009-12-13 09:24:21 +0300 |
commit | e241c2a9481063da480dcfee41be7eb779aaf9a6 (patch) | |
tree | 490176c769a1f683305f0fbc247bd01fdbcdb60b /index.php | |
parent | e5a104843f5199c3ea2ed5395204aea62ff8f30c (diff) |
Handle case where session.save_path is N;/path
git-svn-id: http://dev.piwik.org/svn/trunk@1676 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -53,6 +53,10 @@ if(ini_get('session.save_handler') == 'user') if(ini_get('session.save_handler') == 'files') { $sessionPath = ini_get('session.save_path'); + if(preg_match('/^[0-9]+;(.*)/', $sessionPath, $matches)) + { + $sessionPath = $matches[1]; + } if(ini_get('safe_mode') || ini_get('open_basedir') || empty($sessionPath) || !@is_writable($sessionPath)) { $sessionPath = PIWIK_USER_PATH . '/tmp/sessions'; |