]> source.dussan.org Git - nextcloud-server.git/commitdiff
in case file based session handling in enabled - we need to make sure the configured...
authorThomas Mueller <thomas.mueller@tmit.eu>
Mon, 4 Feb 2013 14:32:01 +0000 (15:32 +0100)
committerThomas Mueller <thomas.mueller@tmit.eu>
Mon, 4 Feb 2013 14:32:01 +0000 (15:32 +0100)
lib/util.php

index e8057abe9ae9055a499e1aa8e79ac1454cd70f80..45e594afd6bfbeab6fb100400532aeb525e8cf2b 100755 (executable)
@@ -268,6 +268,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.');
                }