diff options
author | Sara Golemon <pollita@php.net> | 2006-04-14 17:45:47 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2006-04-14 17:45:47 +0000 |
commit | ca63423e799884a9a1af1a7e5288072c18642911 (patch) | |
tree | 9aa1c26fe7b32162f996066e73136adde6aca008 | |
parent | 9be1bf44c5a1ac0609de393d0aa5a65b131a8e1b (diff) | |
download | php-git-ca63423e799884a9a1af1a7e5288072c18642911.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 8b54a92796..678e790139 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1629,7 +1629,7 @@ PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC) php_stream *srcstream = NULL, *deststream = NULL; int ret = FAILURE; - srcstream = php_stream_open_wrapper(src, "rb", STREAM_DISABLE_OPEN_BASEDIR | REPORT_ERRORS, NULL); + srcstream = php_stream_open_wrapper(src, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL); if (!srcstream) { return ret; |