]> granicus.if.org Git - php/commitdiff
- Fix according to Sara's reply
authorAndi Gutmans <andi@php.net>
Sun, 19 Feb 2006 03:41:25 +0000 (03:41 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 19 Feb 2006 03:41:25 +0000 (03:41 +0000)
main/streams/plain_wrapper.c

index beb65d5ca1c6c5a7506b022cd39dee9c4bdbf8c7..4c685c42023b53a96228a3b7573a21f9125dc76f 100644 (file)
@@ -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;
                }