mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
retore open_basedir check for unlink
This commit is contained in:
parent
d868c71617
commit
2f1752cb49
@ -1035,6 +1035,10 @@ static int php_plain_files_unlink(php_stream_wrapper *wrapper, char *url, int op
|
||||
url = p + 3;
|
||||
}
|
||||
|
||||
if (php_check_open_basedir(url TSRMLS_CC)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
ret = VCWD_UNLINK(url);
|
||||
if (ret == -1) {
|
||||
if (options & REPORT_ERRORS) {
|
||||
|
Loading…
Reference in New Issue
Block a user