diff options
-rw-r--r-- | main/streams/plain_wrapper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 8303adb5b1..c54ccd2ccf 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -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) { |