From 8f7319a49fcf654bac56f022e7898b2b20a54626 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 6 Apr 2006 02:39:55 +0000 Subject: Fixed safe_mode check for source argument of the copy() function. --- ext/standard/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard/file.c') diff --git a/ext/standard/file.c b/ext/standard/file.c index 12816c75c5..bc5ee3d2c1 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1767,7 +1767,7 @@ no_stat: } safe_to_copy: - 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; -- cgit v1.2.1