summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-04-06 02:39:55 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-04-06 02:39:55 +0000
commit8f7319a49fcf654bac56f022e7898b2b20a54626 (patch)
treea4e3bbb90ebc3f7a12fd3c97691b4d57fcf43ac0 /ext/standard/file.c
parent40e25b5ad7b918dbda3fa24f68e674a36a6c83df (diff)
downloadphp-git-8f7319a49fcf654bac56f022e7898b2b20a54626.tar.gz
Fixed safe_mode check for source argument of the copy() function.
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c2
1 files changed, 1 insertions, 1 deletions
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;