mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
- Fix according to Sara's reply
This commit is contained in:
parent
ac1e7362b3
commit
8f126f33ac
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user