mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Fix #50063 (safe_mode_include_dir fails)
This commit is contained in:
parent
a12240f5c7
commit
473d75475a
@ -988,6 +988,10 @@ static php_stream *php_plain_files_stream_opener(php_stream_wrapper *wrapper, ch
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((php_check_safe_mode_include_dir(path TSRMLS_CC)) == 0) {
|
||||
return php_stream_fopen_rel(path, mode, opened_path, options);
|
||||
}
|
||||
|
||||
if ((options & ENFORCE_SAFE_MODE) && PG(safe_mode) && (!php_checkuid(path, mode, CHECKUID_CHECK_MODE_PARAM)))
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user