From b90c2e7cb17e2f60b0a128281d5f30645091ee36 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Tue, 26 May 2009 10:15:08 +0000 Subject: [PATCH] - Revert this, was not supposed to be merged yet --- ext/session/mod_files.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 80ea2c2a15..a9333fe830 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -276,11 +276,13 @@ PS_OPEN_FUNC(files) /* if save path is an empty string, determine the temporary dir */ save_path = php_get_temporary_directory(); - if (PG(safe_mode) && (!php_checkuid(save_path, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { - return FAILURE; - } - if (php_check_open_basedir(save_path TSRMLS_CC)) { - return FAILURE; + if (strcmp(save_path, "/tmp")) { + if (PG(safe_mode) && (!php_checkuid(save_path, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { + return FAILURE; + } + if (php_check_open_basedir(save_path TSRMLS_CC)) { + return FAILURE; + } } } -- 2.50.1