]> granicus.if.org Git - php/commitdiff
MFB: -r1.100.2.3.2.5
authorJani Taskinen <jani@php.net>
Thu, 23 Aug 2007 13:09:27 +0000 (13:09 +0000)
committerJani Taskinen <jani@php.net>
Thu, 23 Aug 2007 13:09:27 +0000 (13:09 +0000)
ext/session/mod_files.c

index 32f8abcc364cf2ec01f8dc3dc25c8a67a5019e7e..8072a0f5631f61894feb2a2865223ca236026811 100644 (file)
@@ -278,8 +278,10 @@ PS_OPEN_FUNC(files)
                /* if save path is an empty string, determine the temporary dir */
                save_path = php_get_temporary_directory();
 
-               if (php_check_open_basedir(save_path TSRMLS_CC)) {
-                       return FAILURE;
+               if (strcmp(save_path, "/tmp")) {
+                       if (php_check_open_basedir(save_path TSRMLS_CC)) {
+                               return FAILURE;
+                       }
                }
        }