mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
- Get rid of using ENFORCE_SAFE_MODE.
This commit is contained in:
parent
8f126f33ac
commit
1efe984d08
34 changed files with 64 additions and 64 deletions
|
@ -283,7 +283,7 @@ void *php_libxml_streams_IO_open_wrapper(const char *filename, const char *mode,
|
|||
that the streams layer puts out at times, but for libxml we
|
||||
may try to open files that don't exist, but it is not a failure
|
||||
in xml processing (eg. DTD files) */
|
||||
wrapper = php_stream_locate_url_wrapper(resolved_path, &path_to_open, ENFORCE_SAFE_MODE TSRMLS_CC);
|
||||
wrapper = php_stream_locate_url_wrapper(resolved_path, &path_to_open, 0 TSRMLS_CC);
|
||||
if (wrapper && read_only && wrapper->wops->url_stat) {
|
||||
if (wrapper->wops->url_stat(wrapper, path_to_open, PHP_STREAM_URL_STAT_QUIET, &ssbuf, NULL TSRMLS_CC) == -1) {
|
||||
if (isescaped) {
|
||||
|
@ -297,7 +297,7 @@ void *php_libxml_streams_IO_open_wrapper(const char *filename, const char *mode,
|
|||
context = zend_fetch_resource(&LIBXML(stream_context) TSRMLS_CC, -1, "Stream-Context", NULL, 1, php_le_stream_context());
|
||||
}
|
||||
|
||||
ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, ENFORCE_SAFE_MODE|REPORT_ERRORS, NULL, context);
|
||||
ret_val = php_stream_open_wrapper_ex(path_to_open, (char *)mode, REPORT_ERRORS, NULL, context);
|
||||
if (isescaped) {
|
||||
xmlFree(resolved_path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue