summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-02-04 11:11:15 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-02-04 11:11:15 -0800
commita7e62b03666dc7395ffea9c0e794ee4ab69fde97 (patch)
treea86edc02be14ba601bb8d939e11f9415125da84d /lib
parentf04a91bd601313c92858944394f792e9dabf03a6 (diff)
parent0a113600f7c3374c9c0840a8ec6bdae2d754a236 (diff)
downloadnextcloud-server-a7e62b03666dc7395ffea9c0e794ee4ab69fde97.tar.gz
nextcloud-server-a7e62b03666dc7395ffea9c0e794ee4ab69fde97.zip
Merge pull request #1444 from owncloud/writable-temp-folder-for-session-data-master
in case file based session handling in enabled - we need to make sure th...
Diffstat (limited to 'lib')
-rwxr-xr-xlib/util.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 91970ab2b96..363e3f105c0 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -243,6 +243,17 @@ class OC_Util {
$web_server_restart= false;
}
+ $handler = ini_get("session.save_handler");
+ if($handler == "files") {
+ $tmpDir = session_save_path();
+ if($tmpDir != ""){
+ if(!@is_writable($tmpDir)){
+ $errors[]=array('error' => 'The temporary folder used by PHP to save the session data is either incorrect or not writable! Please check : '.session_save_path().'<br/>',
+ 'hint'=>'Please ask your server administrator to grant write access or define another temporary folder.');
+ }
+ }
+ }
+
if($web_server_restart) {
$errors[]=array('error'=>'PHP modules have been installed, but they are still listed as missing?<br/>', 'hint'=>'Please ask your server administrator to restart the web server.');
}