From 8f126f33ac87e3bf1432b2a94f27e5f8f47cde9f Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Sun, 19 Feb 2006 03:41:25 +0000 Subject: [PATCH] - Fix according to Sara's reply --- main/streams/plain_wrapper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index beb65d5ca1c..4c685c42023 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -964,8 +964,7 @@ static int php_plain_files_unlink(php_stream_wrapper *wrapper, char *url, int op url = p + 3; } - /* FIXME: Andi - Pending email I sent to internals@ re: ENFORCE_SAFE_MODE */ - if (options & ENFORCE_SAFE_MODE) { + if (!(options & STREAM_DISABLE_OPEN_BASEDIR)) { if (php_check_open_basedir(url TSRMLS_CC)) { return 0; }