]> granicus.if.org Git - php/commitdiff
MFH (r-1.436) copy() should not disrespect open_basedir on source file
authorSara Golemon <pollita@php.net>
Fri, 14 Apr 2006 17:46:59 +0000 (17:46 +0000)
committerSara Golemon <pollita@php.net>
Fri, 14 Apr 2006 17:46:59 +0000 (17:46 +0000)
ext/standard/file.c

index 844e8f0712e9b62f1c3673bd7b079c794aea686e..c23ff82ed6f2af0f169e02c45245e47f9ea51c4f 100644 (file)
@@ -2201,7 +2201,7 @@ no_stat:
 safe_to_copy:
 
        srcstream = php_stream_open_wrapper(src, "rb",
-                               STREAM_DISABLE_OPEN_BASEDIR | REPORT_ERRORS,
+                               ENFORCE_SAFE_MODE | REPORT_ERRORS,
                                NULL);
 
        if (!srcstream)