]> granicus.if.org Git - php/commitdiff
Respect safe mode setting when opening scripts and things for the ZE.
authorWez Furlong <wez@php.net>
Fri, 23 Aug 2002 17:39:20 +0000 (17:39 +0000)
committerWez Furlong <wez@php.net>
Fri, 23 Aug 2002 17:39:20 +0000 (17:39 +0000)
main/main.c

index 446e94786a372f713f12100caa707467da2deeb3..31dfdd71cfdac2202dbf4a0957601179985ecb81 100644 (file)
@@ -711,7 +711,7 @@ static FILE *php_fopen_wrapper_for_zend(const char *filename, char **opened_path
 {
        TSRMLS_FETCH();
 
-       return php_stream_open_wrapper_as_file((char *)filename, "rb", USE_PATH|IGNORE_URL_WIN|REPORT_ERRORS, opened_path);
+       return php_stream_open_wrapper_as_file((char *)filename, "rb", ENFORCE_SAFE_MODE|USE_PATH|IGNORE_URL_WIN|REPORT_ERRORS, opened_path);
 }
 /* }}} */