pollita         Fri Apr 14 17:45:48 2006 UTC

  Modified files:              (Branch: PHP_5_0)
    /php-src/ext/standard       file.c 
  Log:
  MFH (r-1.436) copy() should not disrespect open_basedir on source file
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/file.c?r1=1.382.2.10&r2=1.382.2.11&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.382.2.10 
php-src/ext/standard/file.c:1.382.2.11
--- php-src/ext/standard/file.c:1.382.2.10      Wed Sep 21 14:47:31 2005
+++ php-src/ext/standard/file.c Fri Apr 14 17:45:47 2006
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: file.c,v 1.382.2.10 2005/09/21 14:47:31 dmitry Exp $ */
+/* $Id: file.c,v 1.382.2.11 2006/04/14 17:45:47 pollita Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1629,7 +1629,7 @@
        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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to