Skip to content

Commit ca63423

Browse files
committed
MFH (r-1.436) copy() should not disrespect open_basedir on source file
1 parent 9be1bf4 commit ca63423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC)
16291629
php_stream *srcstream = NULL, *deststream = NULL;
16301630
int ret = FAILURE;
16311631

1632-
srcstream = php_stream_open_wrapper(src, "rb", STREAM_DISABLE_OPEN_BASEDIR | REPORT_ERRORS, NULL);
1632+
srcstream = php_stream_open_wrapper(src, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL);
16331633

16341634
if (!srcstream) {
16351635
return ret;

0 commit comments

Comments
 (0)