diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-07-17 23:46:40 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-07-17 23:46:40 +0000 |
commit | 20aa854940698883fda725ec7055f038faac0096 (patch) | |
tree | dc3c13c39b32dcf0064e72996136a9d320ae0ccc /main/rfc1867.c | |
parent | 2c05c8c6b3b9262788ce17d0be4e81de7ad62175 (diff) | |
download | php-git-20aa854940698883fda725ec7055f038faac0096.tar.gz |
Allow file uploads to bypass open_basedir checks (fixes regression)
Diffstat (limited to 'main/rfc1867.c')
-rw-r--r-- | main/rfc1867.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c index db4c864449..9a2beefc44 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -1016,7 +1016,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) if (!skip_upload) { /* Handle file */ - fd = php_open_temporary_fd(PG(upload_tmp_dir), "php", &temp_filename TSRMLS_CC); + fd = php_open_temporary_fd_ex(PG(upload_tmp_dir), "php", &temp_filename, 1 TSRMLS_CC); if (fd==-1) { sapi_module.sapi_error(E_WARNING, "File upload error - unable to create a temporary file"); cancel_upload = UPLOAD_ERROR_E; |