From 197b51e796a197bc8991e2dec0899f524f5f00ca Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Thu, 23 Aug 2007 13:09:27 +0000 Subject: [PATCH] MFB: -r1.100.2.3.2.5 --- ext/session/mod_files.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 32f8abcc36..8072a0f563 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -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; + } } } -- 2.40.0