diff options
author | Sara Golemon <pollita@php.net> | 2006-04-14 17:47:51 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2006-04-14 17:47:51 +0000 |
commit | 2e4497b5a23a7130180c2fdc818dd4c734d27939 (patch) | |
tree | e34cada6ae151bfa30e58c3e46c9eb1a73030b1a | |
parent | 9f934f0adad47065e7e25c8cfae412e859f73640 (diff) | |
download | php-git-2e4497b5a23a7130180c2fdc818dd4c734d27939.tar.gz |
MFH (r-1.436) copy() should not disrespect open_basedir on source file
-rw-r--r-- | ext/standard/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index b1ad6f742d..7771cb97c4 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -2143,7 +2143,7 @@ PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC) int ret = FAILURE; srcstream = php_stream_open_wrapper(src, "rb", - STREAM_DISABLE_OPEN_BASEDIR | REPORT_ERRORS, + ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL); if (!srcstream) |