diff options
| author | Alexey Zakhlestin <indeyets@php.net> | 2008-08-31 14:49:58 +0000 |
|---|---|---|
| committer | Alexey Zakhlestin <indeyets@php.net> | 2008-08-31 14:49:58 +0000 |
| commit | c9fab63584982b30a5d16cf5d4266f7aa2f637b0 (patch) | |
| tree | 5ce9ca679826b2132706db87438ca22263059fe5 /ext/session/mod_files.c | |
| parent | 043ae9ea985e988e72dde4e22829166928ce13b9 (diff) | |
| download | php-git-c9fab63584982b30a5d16cf5d4266f7aa2f637b0.tar.gz | |
remove special treatment of /tmp path
Diffstat (limited to 'ext/session/mod_files.c')
| -rw-r--r-- | ext/session/mod_files.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index a7a629cea2..23fffe6d8b 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -278,13 +278,11 @@ PS_OPEN_FUNC(files) /* if save path is an empty string, determine the temporary dir */ save_path = php_get_temporary_directory(); - 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; - } + 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; } } |
